Spatio.Model.BlockContent (spatio_sdk v0.0.2)

Type-specific payload for a block. Fields populated depend on Block.type. All fields are optional at the schema level; the runtime enforces the per-type contract. Note: this object uses snake_case keys to match the JSON the Go providers.BlockContent struct emits and accepts. Other parts of the SpatioAPI use camelCase; blocks are the exception because the block model is shared with external Notion-like providers whose canonical wire format is snake_case.

Summary

Types

t()

@type t() :: %Spatio.Model.BlockContent{
  alt_text: String.t() | nil,
  caption: String.t() | nil,
  cells: [[Spatio.Model.RichTextObject.t()]] | nil,
  checked: boolean() | nil,
  color: String.t() | nil,
  embed_url: Uri | nil,
  expression: String.t() | nil,
  icon: String.t() | nil,
  language: String.t() | nil,
  rich_text: [Spatio.Model.RichTextObject.t()] | nil,
  url: Uri | nil
}

Functions

decode(value)