GooglePayBillingAddressConfig constructor

  1. @JsonSerializable(explicitToJson: true)
const GooglePayBillingAddressConfig({
  1. bool? isRequired,
  2. bool? isPhoneNumberRequired,
  3. BillingAddressFormat? format,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory GooglePayBillingAddressConfig({
  /// Set to true if billing 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,

  /// Defines what address fields to collect.
  ///
  /// Defaults to [BillingAddressFormat.MIN]
  BillingAddressFormat? format,
}) = _GooglePayBillingAddressConfig;