# 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.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