PlatformPayWebShippingOption constructor

  1. @JsonSerializable(explicitToJson: true)
const PlatformPayWebShippingOption({
  1. required String id,
  2. required String label,
  3. required String detail,
  4. required num amount,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory PlatformPayWebShippingOption({
  /// A unique ID you create to keep track of this shipping option. You’ll be told the ID of the selected option
  /// on changes and on completion.
  required String id,

  /// A short label for this shipping option.
  required String label,

  /// A longer description of this shipping option.
  required String detail,

  /// The amount to show for this shipping option. If the cost of this shipping option depends on the shipping address
  /// the customer enters, listen for the shippingaddresschange event.
  required num amount,
}) = _$ShippingOption;