toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (addressType != null) {
    json[r'addressType'] = addressType;
  }
  if (descr != null) {
    json[r'descr'] = descr;
  }
  if (street != null) {
    json[r'street'] = street;
  }
  if (houseNumber != null) {
    json[r'houseNumber'] = houseNumber;
  }
  if (postboxNumber != null) {
    json[r'postboxNumber'] = postboxNumber;
  }
  if (postalCode != null) {
    json[r'postalCode'] = postalCode;
  }
  if (city != null) {
    json[r'city'] = city;
  }
  if (state != null) {
    json[r'state'] = state;
  }
  if (country != null) {
    json[r'country'] = country;
  }
  if (note != null) {
    json[r'note'] = note;
  }
  json[r'telecoms'] = telecoms;
  if (encryptedSelf != null) {
    json[r'encryptedSelf'] = encryptedSelf;
  }
  return json;
}