MailingAddress constructor
const
MailingAddress({
- required String id,
- @JsonKey.new(defaultValue: '') required String address1,
- @JsonKey.new(defaultValue: '') required String city,
- @JsonKey.new(defaultValue: '') required String country,
- String? zip,
- String? lastName,
- String? name,
- String? firstName,
- String? address2,
- String? company,
- String? countryCodeV2,
- String? formattedArea,
- double? latitude,
- double? longitude,
- String? phone,
- String? province,
- String? provinceCode,
The mailing address constructor
Implementation
const factory MailingAddress({
required String id,
/// Nullable on the Storefront API; empty string when absent.
@JsonKey(defaultValue: '') required String address1,
/// Nullable on the Storefront API; empty string when absent.
@JsonKey(defaultValue: '') required String city,
/// Nullable on the Storefront API; empty string when absent.
@JsonKey(defaultValue: '') required String country,
String? zip,
String? lastName,
String? name,
String? firstName,
String? address2,
String? company,
String? countryCodeV2,
String? formattedArea,
double? latitude,
double? longitude,
String? phone,
String? province,
String? provinceCode,
}) = _MailingAddress;