google_api_civic_info v0.14.0 GoogleApi.CivicInfo.V2.Model.RepresentativeInfoData View Source

Attributes

  • divisions (type: %{optional(String.t) => GoogleApi.CivicInfo.V2.Model.GeographicDivision.t}, default: nil) - A map of political geographic divisions that contain the requested address, keyed by the unique Open Civic Data identifier for this division.
  • offices (type: list(GoogleApi.CivicInfo.V2.Model.Office.t), default: nil) - Elected offices referenced by the divisions listed above. Will only be present if includeOffices was true in the request.
  • officials (type: list(GoogleApi.CivicInfo.V2.Model.Official.t), default: nil) - Officials holding the offices listed above. Will only be present if includeOffices was true in the request.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.CivicInfo.V2.Model.RepresentativeInfoData{
  divisions: %{
    optional(String.t()) => GoogleApi.CivicInfo.V2.Model.GeographicDivision.t()
  },
  offices: [GoogleApi.CivicInfo.V2.Model.Office.t()],
  officials: [GoogleApi.CivicInfo.V2.Model.Official.t()]
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.