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

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

Attributes

  • aspectRatio (type: float(), default: nil) - The aspect ratio of this image (width/height). This field allows clients to reserve the right height for the image while waiting for it to load. It's not meant to override the native 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

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

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.