GoogleApi.Chat.V1.Model.WidgetMarkup (google_api_chat v0.30.0) View Source

A widget is a UI element that presents texts, images, etc.


  • buttons (type: list(GoogleApi.Chat.V1.Model.Button.t), default: nil) - A list of buttons. Buttons is also oneof data and only one of these fields should be set.
  • image (type: GoogleApi.Chat.V1.Model.Image.t, default: nil) - Display an image in this widget.
  • keyValue (type: GoogleApi.Chat.V1.Model.KeyValue.t, default: nil) - Display a key value item in this widget.
  • textParagraph (type: GoogleApi.Chat.V1.Model.TextParagraph.t, default: nil) - Display a text paragraph in this widget.

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


t() :: %GoogleApi.Chat.V1.Model.WidgetMarkup{
  buttons: [GoogleApi.Chat.V1.Model.Button.t()] | nil,
  image: GoogleApi.Chat.V1.Model.Image.t() | nil,
  keyValue: GoogleApi.Chat.V1.Model.KeyValue.t() | nil,
  textParagraph: GoogleApi.Chat.V1.Model.TextParagraph.t() | nil

Link to this section Functions


decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.