Current section

Files

Jump to
procore_sdk lib procore model incident_affliction.ex
Raw

lib/procore/model/incident_affliction.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.IncidentAffliction do
@moduledoc """
"""
@derive Jason.Encoder
defstruct [
:id,
:affliction_type,
:affected_body_part
]
@type t :: %__MODULE__{
:id => integer() | nil,
:affliction_type => Procore.Model.AfflictionType.t() | nil,
:affected_body_part => String.t() | nil
}
alias Procore.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:affliction_type, :struct, Procore.Model.AfflictionType)
end
end