toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  var json = super.toJson();
  if (country != null) {
    json['country'] = country;
  }
  if (state != null) {
    json['state'] = state;
  }
  if (city != null) {
    json['city'] = city;
  }
  if (address != null) {
    json['address'] = address;
  }
  if (address2 != null) {
    json['address2'] = address2;
  }
  if (zip != null) {
    json['zip'] = zip;
  }
  if (phone != null) {
    json['phone'] = phone;
  }
  if (email != null) {
    json['email'] = email;
  }
  return json;
}