PPOrderAddress constructor
- @JsonSerializable(fieldRename: FieldRename.snake)
const
PPOrderAddress(
{ - @JsonKey(name: 'address_line_1') String? addressLine1,
- @JsonKey(name: 'address_line_2') String? addressLine2,
- @JsonKey(name: 'admin_area_1') String? adminArea1,
- @JsonKey(name: 'admin_area_2') String? adminArea2,
- String? postalCode,
- String? countryCode,
})
Implementation
@JsonSerializable(fieldRename: FieldRename.snake)
const factory PPOrderAddress({
@JsonKey(name: 'address_line_1') String? addressLine1,
@JsonKey(name: 'address_line_2') String? addressLine2,
/// state or province like "CA" or "California"
@JsonKey(name: 'admin_area_1') String? adminArea1,
/// city like "San Francisco"
@JsonKey(name: 'admin_area_2') String? adminArea2,
String? postalCode,
String? countryCode,
}) = _PPOrderAddress;