Current section
Files
Jump to
Current section
Files
lib/procore/model/item_response.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.12.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Procore.Model.ItemResponse do
@moduledoc """
Item Response object
"""
@derive Jason.Encoder
defstruct [
:status,
:response_option_id,
:text_value,
:number_value,
:date_value
]
@type t :: %__MODULE__{
:status => String.t() | nil,
:response_option_id => integer() | nil,
:text_value => String.t() | nil,
:number_value => integer() | nil,
:date_value => Date.t() | nil
}
alias Procore.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:date_value, :date, nil)
end
end