AdministrationRegion.fromJson constructor

AdministrationRegion.fromJson(
  1. Map json_
)

Implementation

AdministrationRegion.fromJson(core.Map json_)
    : this(
        electionAdministrationBody: json_
                .containsKey('electionAdministrationBody')
            ? AdministrativeBody.fromJson(json_['electionAdministrationBody']
                as core.Map<core.String, core.dynamic>)
            : null,
        localJurisdiction: json_.containsKey('local_jurisdiction')
            ? AdministrationRegion.fromJson(json_['local_jurisdiction']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sources: json_.containsKey('sources')
            ? (json_['sources'] as core.List)
                .map((value) => Source.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );