toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'country_code': countryCode,
    'state': state,
    'city': city,
    'street_line1': streetLine1,
    'street_line2': streetLine2,
    'post_code': postCode,
  }..removeWhere((_, v) => v == null);
}