View Source GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoPortionSize (google_api_content_warehouse v0.4.0)

This message denotes the serving portion size of a food dish.

Attributes

  • quantity (type: integer(), default: nil) - Required.
  • unit (type: list(GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t), default: nil) - Required. The repeated name_info field is for the unit in multiple languages.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.ContentWarehouse.V1.Model.GeostoreFoodMenuItemOptionProtoPortionSize{
    quantity: integer() | nil,
    unit:
      [GoogleApi.ContentWarehouse.V1.Model.GeostorePriceListNameInfoProto.t()]
      | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.