Resource.fromJson constructor

Resource.fromJson(
  1. Map _json
)

Implementation

Resource.fromJson(core.Map _json)
    : this(
        contentHash: _json.containsKey('contentHash')
            ? Hash.fromJson(
                _json['contentHash'] as core.Map<core.String, core.dynamic>)
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        uri: _json.containsKey('uri') ? _json['uri'] as core.String : null,
      );