View Source GoogleApi.Chat.V1.Model.GoogleAppsCardV1MaterialIcon (google_api_chat v0.33.0)

A Google Material Icon, which includes over 2500+ options. For example, to display a checkbox icon with customized weight and grade, write { "name": "check_box", "fill": true, "weight": 300, "grade": -25 } Available for Chat apps and in Developer Preview for Google Workspace Add-ons.

Attributes

  • fill (type: boolean(), default: nil) - Whether it renders a filled icon. Default value is false. See Customization in Google Font Icon for details.
  • grade (type: integer(), default: nil) - Weight and grade affect a symbol’s thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, a broken image icon is displayed. See Customization in Google Font Icon for details.
  • name (type: String.t, default: nil) - The icon name defined in the Google Material Icon Icon in snake_case. e.g. "check_box". Any invalid names are abandoned and replaced with empty string and results in the icon failing to render.
  • weight (type: integer(), default: nil) - The stroke weight of the icon. Choose from {100, 200, 300, 400, 500, 600, 700}. If absent, default value is 400. If any other value is specified, a broken image icon is displayed. See Customization in Google Font Icon for details.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Chat.V1.Model.GoogleAppsCardV1MaterialIcon{
  fill: boolean() | nil,
  grade: integer() | nil,
  name: String.t() | nil,
  weight: integer() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.