# NOTE: This file is auto generated by OpenAPI Generator 7.22.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Spatio.Model.CreateSlideRequest do
@moduledoc """
`presentationId` in the body is allowed but redundant when posting to `/v1/slides/{id}/slides` — the path id wins.
"""
@derive JSON.Encoder
defstruct [
:presentationId,
:title,
:notes,
:layout,
:backgroundColor,
:backgroundImageUrl,
:textColor,
:transition,
:position
]
@type t :: %__MODULE__{
:presentationId => String.t | nil,
:title => String.t | nil,
:notes => String.t | nil,
:layout => String.t | nil,
:backgroundColor => String.t | nil,
:backgroundImageUrl => Uri | nil,
:textColor => String.t | nil,
:transition => String.t | nil,
:position => integer() | nil
}
alias Spatio.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:backgroundImageUrl, :struct, Spatio.Model.Uri)
end
end