PlatformPayWebShippingOption constructor
- @JsonSerializable(explicitToJson: true)
const
PlatformPayWebShippingOption(
{ - required String id,
- required String label,
- required String detail,
- 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;