Current section
Files
Jump to
Current section
Files
lib/procore/model/company_person.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.8.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Procore.Model.CompanyPerson do
@moduledoc """
The Company Person object.
"""
@derive Jason.Encoder
defstruct [
:contact,
:employee_id,
:first_name,
:id,
:is_employee,
:last_name,
:user_id,
:user_uuid,
:work_classification_id,
:origin_id
]
@type t :: %__MODULE__{
:contact => Procore.Model.CompanyPersonContact.t() | nil,
:employee_id => String.t() | nil,
:first_name => String.t() | nil,
:id => integer() | nil,
:is_employee => boolean() | nil,
:last_name => String.t() | nil,
:user_id => integer() | nil,
:user_uuid => integer() | nil,
:work_classification_id => integer() | nil,
:origin_id => String.t() | nil
}
alias Procore.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:contact, :struct, Procore.Model.CompanyPersonContact)
end
end