Office.fromJson constructor
Office.fromJson(
- Map json_
Implementation
Office.fromJson(core.Map json_)
: this(
divisionId: json_.containsKey('divisionId')
? json_['divisionId'] as core.String
: null,
levels: json_.containsKey('levels')
? (json_['levels'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
officialIndices: json_.containsKey('officialIndices')
? (json_['officialIndices'] as core.List)
.map((value) => value as core.int)
.toList()
: null,
roles: json_.containsKey('roles')
? (json_['roles'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
sources: json_.containsKey('sources')
? (json_['sources'] as core.List)
.map((value) => Source.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);