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

View Source

Attributes

  • firstValue (type: GoogleApi.WalletObjects.V1.Model.FieldSelector.t, default: nil) - A reference to a field to display. If both firstValue and secondValue are populated, they will both appear as one item with a slash between them. For example, values A and B would be shown as "A / B".
  • predefinedItem (type: String.t, default: nil) - A predefined item to display. Only one of firstValue or predefinedItem may be set.
  • secondValue (type: GoogleApi.WalletObjects.V1.Model.FieldSelector.t, default: nil) - A reference to a field to display. This may only be populated if the firstValue field is populated.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.WalletObjects.V1.Model.TemplateItem{
  firstValue: GoogleApi.WalletObjects.V1.Model.FieldSelector.t() | nil,
  predefinedItem: String.t() | nil,
  secondValue: GoogleApi.WalletObjects.V1.Model.FieldSelector.t() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.