GoogleApi.CivicInfo.V2.Model.CivicinfoApiprotosV2RepresentativeInfoResponse (google_api_civic_info v0.26.0)

View Source

The result of a representative info lookup query.

Attributes

  • divisions (type: %{optional(String.t) => GoogleApi.CivicInfo.V2.Model.CivicinfoSchemaV2GeographicDivision.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.
  • kind (type: String.t, default: civicinfo#representativeInfoResponse) - Identifies what kind of resource this is. Value: the fixed string "civicinfo#representativeInfoResponse".
  • normalizedInput (type: GoogleApi.CivicInfo.V2.Model.CivicinfoSchemaV2SimpleAddressType.t, default: nil) - The normalized version of the requested address
  • offices (type: list(GoogleApi.CivicInfo.V2.Model.CivicinfoSchemaV2Office.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.CivicinfoSchemaV2Official.t), default: nil) - Officials holding the offices listed above. Will only be present if includeOffices was true in the request.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.CivicInfo.V2.Model.CivicinfoApiprotosV2RepresentativeInfoResponse{
    divisions:
      %{
        optional(String.t()) =>
          GoogleApi.CivicInfo.V2.Model.CivicinfoSchemaV2GeographicDivision.t()
      }
      | nil,
    kind: String.t() | nil,
    normalizedInput:
      GoogleApi.CivicInfo.V2.Model.CivicinfoSchemaV2SimpleAddressType.t() | nil,
    offices: [GoogleApi.CivicInfo.V2.Model.CivicinfoSchemaV2Office.t()] | nil,
    officials:
      [GoogleApi.CivicInfo.V2.Model.CivicinfoSchemaV2Official.t()] | nil
  }

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.