# NOTE: This file is auto generated by OpenAPI Generator # https://openapi-generator.tech # Do not edit this file manually. defmodule DocuSign.Model.ContactGetResponse do @moduledoc """ This response object contains information about the contacts associated with an account. """ alias DocuSign.Deserializer alias DocuSign.Model.Contact defstruct [ :contacts, :endPosition, :nextUri, :previousUri, :resultSetSize, :startPosition, :totalSetSize ] @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__{ :contacts => [Contact.t()] | nil, :endPosition => String.t() | nil, :nextUri => String.t() | nil, :previousUri => String.t() | nil, :resultSetSize => String.t() | nil, :startPosition => String.t() | nil, :totalSetSize => String.t() | nil } def decode(value) do value |> Deserializer.deserialize( :contacts, :list, Contact ) |> then(&struct(__MODULE__, &1)) end end