ShippingDetailsAddress constructor

const ShippingDetailsAddress({
  1. String? line1,
  2. String? line2,
  3. String? city,
  4. String? state,
  5. String? country,
  6. @JsonKey(name: 'postal_code') String? postalCode,
})

Implementation

const factory ShippingDetailsAddress({
  /// Address line 1 (e.g., street, PO Box, or company name).
  String? line1,

  /// Address line 2 (e.g., apartment, suite, unit, or building).
  String? line2,

  /// City, district, suburb, town, or village.
  String? city,

  /// State, county, province, or region.
  String? state,

  /// Two-letter country code (ISO 3166-1 alpha-2).
  String? country,

  /// ZIP or postal code.
  @JsonKey(name: 'postal_code') String? postalCode,
}) = _PaymentElementBillingDetailsAddress;