lib/ory/model/ui_node_input_attributes.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.UiNodeInputAttributes do
  @moduledoc """
  InputAttributes represents the attributes of an input node
  """

  @derive [Poison.Encoder]
  defstruct [
    :autocomplete,
    :disabled,
    :label,
    :name,
    :node_type,
    :onclick,
    :pattern,
    :required,
    :type,
    :value
  ]

  @type t :: %__MODULE__{
    :autocomplete => String.t | nil,
    :disabled => boolean(),
    :label => Ory.Model.UiText.t | nil,
    :name => String.t,
    :node_type => String.t,
    :onclick => String.t | nil,
    :pattern => String.t | nil,
    :required => boolean() | nil,
    :type => String.t,
    :value => AnyType | nil
  }
end

defimpl Poison.Decoder, for: Ory.Model.UiNodeInputAttributes do
  import Ory.Deserializer
  def decode(value, options) do
    value
    |> deserialize(:label, :struct, Ory.Model.UiText, options)
    |> deserialize(:value, :struct, Ory.Model.AnyType, options)
  end
end