GooglePayShippingAddressConfig constructor

  1. @JsonSerializable(explicitToJson: true)
const GooglePayShippingAddressConfig({
  1. bool? isRequired,
  2. bool? isPhoneNumberRequired,
  3. 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;