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

A button. Can be a text button or an image button.

Attributes

  • imageButton (type: GoogleApi.Chat.V1.Model.ImageButton.t, default: nil) - A button with image and onclick action.
  • textButton (type: GoogleApi.Chat.V1.Model.TextButton.t, default: nil) - A button with text and onclick action.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Chat.V1.Model.Button{
  imageButton: GoogleApi.Chat.V1.Model.ImageButton.t() | nil,
  textButton: GoogleApi.Chat.V1.Model.TextButton.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.