Chain.fromJson constructor
Chain.fromJson(
- Map json_
Implementation
Chain.fromJson(core.Map json_)
: this(
chainNames: json_.containsKey('chainNames')
? (json_['chainNames'] as core.List)
.map((value) => ChainName.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
locationCount: json_.containsKey('locationCount')
? json_['locationCount'] as core.int
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
websites: json_.containsKey('websites')
? (json_['websites'] as core.List)
.map((value) => ChainUri.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);