# NOTE: This file is auto generated by OpenAPI Generator 7.12.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.DeviceAuthnAttestation do @moduledoc """ Exactly one of Android / IOS is set, matching the key's DeviceType. """ @derive Jason.Encoder defstruct [ :android, :ios ] @type t :: %__MODULE__{ :android => Ory.Model.DeviceAuthnAndroidKeyDescription.t | nil, :ios => Ory.Model.DeviceAuthnIosAttestation.t | nil } alias Ory.Deserializer def decode(value) do value |> Deserializer.deserialize(:android, :struct, Ory.Model.DeviceAuthnAndroidKeyDescription) |> Deserializer.deserialize(:ios, :struct, Ory.Model.DeviceAuthnIosAttestation) end end