Resource.fromJson constructor

Resource.fromJson(
  1. Map json_
)

Implementation

Resource.fromJson(core.Map json_)
    : this(
        pathTemplate: json_.containsKey('pathTemplate')
            ? json_['pathTemplate'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );