# 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.WaitForConditions do @moduledoc """ Conditions to apply to emails that you are waiting for """ @derive [Poison.Encoder] defstruct [ :"inboxId", :"count", :"delayTimeout", :"timeout", :"unreadOnly", :"countType", :"matches", :"sortDirection", :"since", :"before" ] @type t :: %__MODULE__{ :"inboxId" => String.t, :"count" => integer() | nil, :"delayTimeout" => integer() | nil, :"timeout" => integer(), :"unreadOnly" => boolean() | nil, :"countType" => String.t | nil, :"matches" => [MatchOption] | nil, :"sortDirection" => String.t | nil, :"since" => DateTime.t | nil, :"before" => DateTime.t | nil } end defimpl Poison.Decoder, for: MailSlurpAPI.Model.WaitForConditions do import MailSlurpAPI.Deserializer def decode(value, options) do value |> deserialize(:"matches", :list, MailSlurpAPI.Model.MatchOption, options) end end