Current section
Files
Jump to
Current section
Files
lib/procore/model/incident_affliction.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.7.0-SNAPSHOT (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