# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule MailSlurpAPI.Model.CreateConnectorOptions do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"connectorType",
:"connectorAuthType",
:"imapSettings",
:"inboxId",
:"syncEnabled",
:"syncScheduleType",
:"syncInterval"
]
@type t :: %__MODULE__{
:"connectorType" => String.t,
:"connectorAuthType" => String.t,
:"imapSettings" => CreateConnectorImapOptions | nil,
:"inboxId" => String.t | nil,
:"syncEnabled" => boolean(),
:"syncScheduleType" => String.t,
:"syncInterval" => integer() | nil
}
end
defimpl Poison.Decoder, for: MailSlurpAPI.Model.CreateConnectorOptions do
import MailSlurpAPI.Deserializer
def decode(value, options) do
value
|> deserialize(:"imapSettings", :struct, MailSlurpAPI.Model.CreateConnectorImapOptions, options)
end
end