Current section
Files
Jump to
Current section
Files
lib/docusign/model/name_value.ex
# NOTE: This file is auto generated by OpenAPI Generator 6.4.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule DocuSign.Model.NameValue do
@moduledoc """
A name-value pair that describes an item and provides a value for the item.
"""
@derive [Poison.Encoder]
defstruct [
:errorDetails,
:name,
:originalValue,
:value
]
@type t :: %__MODULE__{
:errorDetails => DocuSign.Model.ErrorDetails.t() | nil,
:name => String.t() | nil,
:originalValue => String.t() | nil,
:value => String.t() | nil
}
end
defimpl Poison.Decoder, for: DocuSign.Model.NameValue do
import DocuSign.Deserializer
def decode(value, options) do
value
|> deserialize(:errorDetails, :struct, DocuSign.Model.ErrorDetails, options)
end
end