RepresentativeInfoData.fromJson constructor
RepresentativeInfoData.fromJson(
- Map json_
Implementation
RepresentativeInfoData.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,
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,
);