Current section
Files
Jump to
Current section
Files
lib/procore/model/office.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.9.0-SNAPSHOT (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Procore.Model.Office do
@moduledoc """
Office
"""
@derive Jason.Encoder
defstruct [
:id,
:name,
:address,
:city,
:state_code,
:country_code,
:zip,
:phone,
:fax,
:division,
:logo
]
@type t :: %__MODULE__{
:id => integer() | nil,
:name => String.t() | nil,
:address => String.t() | nil,
:city => String.t() | nil,
:state_code => String.t() | nil,
:country_code => String.t() | nil,
:zip => String.t() | nil,
:phone => String.t() | nil,
:fax => String.t() | nil,
:division => String.t() | nil,
:logo => Procore.Model.OfficeLogo.t() | nil
}
alias Procore.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:logo, :struct, Procore.Model.OfficeLogo)
end
end