# NOTE: This file is auto generated by OpenAPI Generator # https://openapi-generator.tech # Do not edit this file manually. defmodule DocuSign.Model.ConnectLog do @moduledoc """ Contains information about a Connect log entry. """ alias DocuSign.Deserializer alias DocuSign.Model.ConnectDebugLog defstruct [ :accountId, :configUrl, :connectDebugLog, :connectId, :created, :email, :envelopeId, :error, :failureId, :failureUri, :lastTry, :logId, :logUri, :retryCount, :retryUri, :status, :subject, :userName ] @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__{ :accountId => String.t() | nil, :configUrl => String.t() | nil, :connectDebugLog => [ConnectDebugLog.t()] | nil, :connectId => String.t() | nil, :created => String.t() | nil, :email => String.t() | nil, :envelopeId => String.t() | nil, :error => String.t() | nil, :failureId => String.t() | nil, :failureUri => String.t() | nil, :lastTry => String.t() | nil, :logId => String.t() | nil, :logUri => String.t() | nil, :retryCount => String.t() | nil, :retryUri => String.t() | nil, :status => String.t() | nil, :subject => String.t() | nil, :userName => String.t() | nil } def decode(value) do value |> Deserializer.deserialize( :connectDebugLog, :list, ConnectDebugLog ) |> then(&struct(__MODULE__, &1)) end end