Address constructor
- @JsonSerializable(explicitToJson: true)
const
Address(
{ - required String? city,
- required String? country,
- required String? line1,
- required String? line2,
- required String? postalCode,
- 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;