# NOTE: This file is auto generated by OpenAPI Generator 7.9.0-SNAPSHOT (https://openapi-generator.tech). # Do not edit this file manually. defmodule Procore.Model.Instruction do @moduledoc """ """ @derive Jason.Encoder defstruct [ :number, :title, :status, :instruction_type_id, :instruction_from_id, :date_received, :schedule_impact, :cost_impact, :private, :description, :attention_ids, :distribution_member_ids, :trade_ids, :attachments ] @type t :: %__MODULE__{ :number => String.t() | nil, :title => String.t(), :status => String.t(), :instruction_type_id => integer(), :instruction_from_id => integer() | nil, :date_received => Date.t() | nil, :schedule_impact => Procore.Model.InstructionScheduleImpact.t() | nil, :cost_impact => Procore.Model.InstructionCostImpact.t() | nil, :private => boolean() | nil, :description => String.t() | nil, :attention_ids => [integer()] | nil, :distribution_member_ids => [integer()] | nil, :trade_ids => [integer()] | nil, :attachments => [String.t()] | nil } alias Procore.Deserializer def decode(value) do value |> Deserializer.deserialize(:date_received, :date, nil) |> Deserializer.deserialize( :schedule_impact, :struct, Procore.Model.InstructionScheduleImpact ) |> Deserializer.deserialize(:cost_impact, :struct, Procore.Model.InstructionCostImpact) end end