# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule Ory.Model.OAuth2ConsentSession do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :allowed_top_level_claims, :client_id, :consent_challenge, :exclude_not_before_claim, :expires_at, :extra, :headers, :id_token_claims, :kid, :subject, :username ] @type t :: %__MODULE__{ :allowed_top_level_claims => [String.t] | nil, :client_id => String.t | nil, :consent_challenge => String.t | nil, :exclude_not_before_claim => boolean() | nil, :expires_at => Ory.Model.OAuth2ConsentSessionExpiresAt.t | nil, :extra => %{optional(String.t) => AnyType} | nil, :headers => Ory.Model.Headers.t | nil, :id_token_claims => Ory.Model.IdTokenClaims.t | nil, :kid => String.t | nil, :subject => String.t | nil, :username => String.t | nil } end defimpl Poison.Decoder, for: Ory.Model.OAuth2ConsentSession do import Ory.Deserializer def decode(value, options) do value |> deserialize(:expires_at, :struct, Ory.Model.OAuth2ConsentSessionExpiresAt, options) |> deserialize(:extra, :map, Ory.Model.AnyType, options) |> deserialize(:headers, :struct, Ory.Model.Headers, options) |> deserialize(:id_token_claims, :struct, Ory.Model.IdTokenClaims, options) end end