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

An image that's specified by a URL and can have an onclick action.

Attributes

  • aspectRatio (type: float(), default: nil) - The aspect ratio of this image (width and height). This field lets you reserve the right height for the image while waiting for it to load. It's not meant to override the built-in aspect ratio of the image. If unset, the server fills it by prefetching the image.
  • imageUrl (type: String.t, default: nil) - The URL of the image.
  • onClick (type: GoogleApi.Chat.V1.Model.OnClick.t, default: nil) - The onclick action.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Chat.V1.Model.Image{
  aspectRatio: float() | nil,
  imageUrl: String.t() | nil,
  onClick: GoogleApi.Chat.V1.Model.OnClick.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.