# 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.RichTextObject do
@moduledoc """
"""
@derive JSON.Encoder
defstruct [
:type,
:text,
:annotations,
:href
]
@type t :: %__MODULE__{
:type => String.t,
:text => String.t | nil,
:annotations => Spatio.Model.TextAnnotations.t | nil,
:href => String.t | nil
}
alias Spatio.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:annotations, :struct, Spatio.Model.TextAnnotations)
end
end