View Source GoogleApi.CivicInfo.V2.Model.ElectionsQueryResponse (google_api_civic_info v0.23.0)

The list of elections available for this version of the API.

Attributes

  • elections (type: list(GoogleApi.CivicInfo.V2.Model.Election.t), default: nil) - A list of available elections
  • kind (type: String.t, default: civicinfo#electionsQueryResponse) - Identifies what kind of resource this is. Value: the fixed string "civicinfo#electionsQueryResponse".

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CivicInfo.V2.Model.ElectionsQueryResponse{
  elections: [GoogleApi.CivicInfo.V2.Model.Election.t()] | nil,
  kind: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.