toJson method

Map<String, dynamic> toJson()

Converts a ShippingAddress object to a JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'country_code': countryCode,
    'state': state,
    'city': city,
    'street_line1': streetLine1,
    'street_line2': streetLine2,
    'post_code': postCode,
  }..removeWhere(_nullFilter);
}