Election.fromJson constructor

Election.fromJson(
  1. Map json_
)

Implementation

Election.fromJson(core.Map json_)
    : this(
        electionDay: json_.containsKey('electionDay')
            ? json_['electionDay'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        ocdDivisionId: json_.containsKey('ocdDivisionId')
            ? json_['ocdDivisionId'] as core.String
            : null,
        shapeLookupBehavior: json_.containsKey('shapeLookupBehavior')
            ? json_['shapeLookupBehavior'] as core.String
            : null,
      );