Site.fromJson constructor
Site.fromJson(
- Map _json
Implementation
Site.fromJson(core.Map _json)
: this(
appId:
_json.containsKey('appId') ? _json['appId'] as core.String : null,
defaultUrl: _json.containsKey('defaultUrl')
? _json['defaultUrl'] as core.String
: null,
labels: _json.containsKey('labels')
? (_json['labels'] 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,
type: _json.containsKey('type') ? _json['type'] as core.String : null,
);