Current section
Files
Jump to
Current section
Files
lib/ex_bifrost/model/list_customers_response.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.23.0 (https://openapi-generator.tech)
# using the Elixir SDK Generator template (https://github.com/houllette/elixir-sdk-generator).
# Do not edit this file manually — edit the templates and regenerate instead.
defmodule ExBifrost.Model.ListCustomersResponse do
@moduledoc """
List customers response
"""
@derive JSON.Encoder
defstruct [
:customers,
:count
]
@type t :: %__MODULE__{
:customers => [ExBifrost.Model.Customer.t()] | nil,
:count => integer() | nil
}
alias ExBifrost.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:customers, :list, ExBifrost.Model.Customer)
end
end