Packages
OpenAPI API client for Ory Kratos, Ory's central identity management solution with hardened authentication, MFA, FIDO2, TOTP, WebAuthn, SSO, profile management, and more.
Current section
Files
Jump to
Current section
Files
lib/ory/model/ui_node.ex
# 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.UiNode do
@moduledoc """
Nodes are represented as HTML elements or their native UI equivalents. For example, a node can be an `<img>` tag, or an `<input element>` but also `some plain text`.
"""
@derive [Poison.Encoder]
defstruct [
:attributes,
:group,
:messages,
:meta,
:type
]
@type t :: %__MODULE__{
:attributes => Ory.Model.UiNodeAttributes.t,
:group => String.t,
:messages => [Ory.Model.UiText.t],
:meta => Ory.Model.UiNodeMeta.t,
:type => String.t
}
end
defimpl Poison.Decoder, for: Ory.Model.UiNode do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:attributes, :struct, Ory.Model.UiNodeAttributes, options)
|> deserialize(:messages, :list, Ory.Model.UiText, options)
|> deserialize(:meta, :struct, Ory.Model.UiNodeMeta, options)
end
end