lib/ory/model/session_authentication_method.ex

# NOTE: This file is auto generated by OpenAPI Generator 6.2.1 (https://openapi-generator.tech).
# Do not edit this file manually.

defmodule Ory.Model.SessionAuthenticationMethod do
  @moduledoc """
  A singular authenticator used during authentication / login.
  """

  @derive [Poison.Encoder]
  defstruct [
    :aal,
    :completed_at,
    :method
  ]

  @type t :: %__MODULE__{
    :aal => Ory.Model.AuthenticatorAssuranceLevel.t | nil,
    :completed_at => DateTime.t | nil,
    :method => String.t | nil
  }
end

defimpl Poison.Decoder, for: Ory.Model.SessionAuthenticationMethod do
  import Ory.Deserializer
  def decode(value, options) do
    value
    |> deserialize(:aal, :struct, Ory.Model.AuthenticatorAssuranceLevel, options)
  end
end