Current section
Files
Jump to
Current section
Files
lib/procore/model/timesheet_1.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.Timesheet1 do
@moduledoc """
"""
@derive Jason.Encoder
defstruct [
:party,
:other_hours,
:timecard_entries
]
@type t :: %__MODULE__{
:party => Procore.Model.Party.t() | nil,
:other_hours => [Procore.Model.OtherHours.t()] | nil,
:timecard_entries => [Procore.Model.TimecardEntry1.t()] | nil
}
alias Procore.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:party, :struct, Procore.Model.Party)
|> Deserializer.deserialize(:other_hours, :list, Procore.Model.OtherHours)
|> Deserializer.deserialize(:timecard_entries, :list, Procore.Model.TimecardEntry1)
end
end