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

A widget is a UI element that presents text and images.

Attributes

  • 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type 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
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.