toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (street != null) 'street': street,
    if (street2 != null) 'street2': street2,
    if (city != null) 'city': city,
    if (stateProvince != null) 'stateProvince': stateProvince,
    if (postcodeZip != null) 'postcodeZip': postcodeZip,
    if (country != null) 'country': country,
  };
}