Address constructor

  1. @JsonSerializable(explicitToJson: true)
const Address({
  1. required String? city,
  2. required String? country,
  3. required String? line1,
  4. required String? line2,
  5. required String? postalCode,
  6. required String? state,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory Address({
  /// City, town or district.
  required String? city,

  /// Country
  required String? country,

  /// Address line1 (e.g. Street, C/O , PO Box).
  required String? line1,

  /// Address line2 (e.g. building, appartment or unit).
  required String? line2,

  /// ZIP or postal code.
  required String? postalCode,

  /// State or province.
  required String? state,
}) = _Address;