GoogleApi.WalletObjects.V1.Model.LabelValue (google_api_wallet_objects v0.12.0)

View Source

A pair of text strings to be displayed in the details view. Note we no longer display LabelValue/LabelValueRow as a table, instead a list of items.

Attributes

  • label (type: String.t, default: nil) - The label for a specific row and column. Recommended maximum is 15 characters for a two-column layout and 30 characters for a one-column layout.
  • localizedLabel (type: GoogleApi.WalletObjects.V1.Model.LocalizedString.t, default: nil) - Translated strings for the label. Recommended maximum is 15 characters for a two-column layout and 30 characters for a one-column layout.
  • localizedValue (type: GoogleApi.WalletObjects.V1.Model.LocalizedString.t, default: nil) - Translated strings for the value. Recommended maximum is 15 characters for a two-column layout and 30 characters for a one-column layout.
  • value (type: String.t, default: nil) - The value for a specific row and column. Recommended maximum is 15 characters for a two-column layout and 30 characters for a one-column layout.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.WalletObjects.V1.Model.LabelValue{
  label: String.t() | nil,
  localizedLabel: GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
  localizedValue: GoogleApi.WalletObjects.V1.Model.LocalizedString.t() | nil,
  value: String.t() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.