lib/spatio/model/account_list_response.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.22.0 (https://openapi-generator.tech).
# Do not edit this file manually.

defmodule Spatio.Model.AccountListResponse do
  @moduledoc """
  `GET /v1/accounts` returns `{accounts_by_platform, total_accounts}` on production today. Schema kept open until the consumers migrate to a flat `accounts` array. 
  """

  @derive JSON.Encoder
  defstruct [
    :accounts_by_platform,
    :total_accounts,
    :accounts
  ]

  @type t :: %__MODULE__{
    :accounts_by_platform => %{optional(String.t) => any()} | nil,
    :total_accounts => integer() | nil,
    :accounts => [map()] | nil
  }

  def decode(value) do
    value
  end
end