RepresentativeInfoResponse.fromJson constructor
RepresentativeInfoResponse.fromJson(
- Map json_
Implementation
RepresentativeInfoResponse.fromJson(core.Map json_)
: this(
divisions: json_.containsKey('divisions')
? (json_['divisions'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
GeographicDivision.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
normalizedInput: json_.containsKey('normalizedInput')
? SimpleAddressType.fromJson(json_['normalizedInput']
as core.Map<core.String, core.dynamic>)
: null,
offices: json_.containsKey('offices')
? (json_['offices'] as core.List)
.map((value) => Office.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
officials: json_.containsKey('officials')
? (json_['officials'] as core.List)
.map((value) => Official.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);