# 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.IdentityPatch do
@moduledoc """
Payload for patching an identity
"""
@derive [Poison.Encoder]
defstruct [
:create,
:patch_id
]
@type t :: %__MODULE__{
:create => Ory.Model.CreateIdentityBody.t | nil,
:patch_id => String.t | nil
}
end
defimpl Poison.Decoder, for: Ory.Model.IdentityPatch do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:create, :struct, Ory.Model.CreateIdentityBody, options)
end
end