Current section

Files

Jump to
docusign lib docusign model page.ex
Raw

lib/docusign/model/page.ex

# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DocuSign.Model.Page do
@moduledoc """
Description of a page of a document.
"""
@derive [Poison.Encoder]
defstruct [
:dpi,
:errorDetails,
:height,
:imageBytes,
:mimeType,
:pageId,
:sequence,
:width
]
@type t :: %__MODULE__{
:dpi => String.t(),
:errorDetails => ErrorDetails,
:height => String.t(),
:imageBytes => String.t(),
:mimeType => String.t(),
:pageId => String.t(),
:sequence => String.t(),
:width => String.t()
}
end
defimpl Poison.Decoder, for: DocuSign.Model.Page do
import DocuSign.Deserializer
def decode(value, options) do
value
|> deserialize(:errorDetails, :struct, DocuSign.Model.ErrorDetails, options)
end
end