# 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.NotificationDefaults do
@moduledoc """
The `NotificationDefaults` resource provides methods that enable you to manage the default notifications for envelopes.
"""
@derive [Poison.Encoder]
defstruct [
:apiEmailNotifications,
:emailNotifications
]
@type t :: %__MODULE__{
:apiEmailNotifications => DocuSign.Model.NotificationDefaultSettings.t() | nil,
:emailNotifications => DocuSign.Model.NotificationDefaultSettings.t() | nil
}
end
defimpl Poison.Decoder, for: DocuSign.Model.NotificationDefaults do
import DocuSign.Deserializer
def decode(value, options) do
value
|> deserialize(
:apiEmailNotifications,
:struct,
DocuSign.Model.NotificationDefaultSettings,
options
)
|> deserialize(
:emailNotifications,
:struct,
DocuSign.Model.NotificationDefaultSettings,
options
)
end
end