Current section
Files
Jump to
Current section
Files
lib/docusign/model/external_file.ex
# NOTE: This file is auto generated by OpenAPI Generator
# https://openapi-generator.tech
# Do not edit this file manually.
defmodule DocuSign.Model.ExternalFile do
@moduledoc """
This object contains information about a file or folder in cloud storage.
"""
defstruct [
:date,
:hasCompositeTemplate,
:id,
:img,
:name,
:ownerName,
:size,
:supported,
:type,
:uri
]
@doc false
defimpl Jason.Encoder, for: __MODULE__ do
def encode(struct, opts) do
struct
|> Map.from_struct()
|> Enum.reject(fn {_k, v} -> is_nil(v) end)
|> Map.new()
|> Jason.Encode.map(opts)
end
end
@type t :: %__MODULE__{
:date => String.t() | nil,
:hasCompositeTemplate => String.t() | nil,
:id => String.t() | nil,
:img => String.t() | nil,
:name => String.t() | nil,
:ownerName => String.t() | nil,
:size => String.t() | nil,
:supported => String.t() | nil,
:type => String.t() | nil,
:uri => String.t() | nil
}
def decode(value) do
struct(__MODULE__, value)
end
end