GooglePayShippingAddressConfig constructor
- @JsonSerializable(explicitToJson: true)
const
GooglePayShippingAddressConfig(
{ - bool? isRequired,
- bool? isPhoneNumberRequired,
- List<String>? allowedCountryCodes,
})
Implementation
@JsonSerializable(explicitToJson: true)
const factory GooglePayShippingAddressConfig({
/// Set to true if shipping address is required for payment.
///
/// Defaults to false
bool? isRequired,
/// Set to true if phone number is required for payment.
///
/// Defaults to false.
bool? isPhoneNumberRequired,
/// List of ISO 3166-1 alpha-2 country code values of the countries where shipping is allowed.
///
/// Defaults to all shipping address countries.
List<String>? allowedCountryCodes,
}) = _GooglePayShippingAddressConfig;