# 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.BatchImportResult do @moduledoc """ BatchImportResult contains the result for one key in a batch import request. """ @derive Jason.Encoder defstruct [ :error_code, :error_message, :imported_api_key, :index ] @type t :: %__MODULE__{ :error_code => Ory.Model.BatchImportErrorCode.t | nil, :error_message => String.t | nil, :imported_api_key => Ory.Model.ImportedApiKey.t | nil, :index => integer() | nil } alias Ory.Deserializer def decode(value) do value |> Deserializer.deserialize(:error_code, :struct, Ory.Model.BatchImportErrorCode) |> Deserializer.deserialize(:imported_api_key, :struct, Ory.Model.ImportedApiKey) end end