Subject.fromJson constructor

Subject.fromJson(
  1. Map _json
)

Implementation

Subject.fromJson(core.Map _json)
    : this(
        digest: _json.containsKey('digest')
            ? (_json['digest'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
      );