# 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.CreateNoteRequest do
@moduledoc """
"""
@derive JSON.Encoder
defstruct [
:title,
:content,
:icon,
:coverImage,
:parentId,
:properties,
:accountId,
:provider
]
@type t :: %__MODULE__{
:title => String.t,
:content => String.t | nil,
:icon => String.t | nil,
:coverImage => Uri | nil,
:parentId => String.t | nil,
:properties => %{optional(String.t) => any()} | nil,
:accountId => String.t | nil,
:provider => String.t | nil
}
alias Spatio.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:coverImage, :struct, Spatio.Model.Uri)
end
end