lib/spatio/model/update_block_request.ex

# 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.UpdateBlockRequest do
  @moduledoc """
  Partial update — only fields present in the body are touched.
  """

  @derive JSON.Encoder
  defstruct [
    :content,
    :properties,
    :archived
  ]

  @type t :: %__MODULE__{
    :content => Spatio.Model.BlockContent.t | nil,
    :properties => %{optional(String.t) => any()} | nil,
    :archived => boolean() | nil
  }

  alias Spatio.Deserializer

  def decode(value) do
    value
     |> Deserializer.deserialize(:content, :struct, Spatio.Model.BlockContent)
  end
end