toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (from != null) {
    json[r'from'] = from;
  }
  if (to != null) {
    json[r'to'] = to;
  }
  if (authorisationNr != null) {
    json[r'authorisationNr'] = authorisationNr;
  }
  json[r'vatNr'] = vatNr;
  if (europeanNr != null) {
    json[r'europeanNr'] = europeanNr;
  }
  if (denomination != null) {
    json[r'denomination'] = denomination;
  }
  if (legalForm != null) {
    json[r'legalForm'] = legalForm;
  }
  if (building != null) {
    json[r'building'] = building;
  }
  if (streetName != null) {
    json[r'streetName'] = streetName;
  }
  if (streetNum != null) {
    json[r'streetNum'] = streetNum;
  }
  if (postbox != null) {
    json[r'postbox'] = postbox;
  }
  if (postcode != null) {
    json[r'postcode'] = postcode;
  }
  if (city != null) {
    json[r'city'] = city;
  }
  if (countryCode != null) {
    json[r'countryCode'] = countryCode;
  }
  if (phone != null) {
    json[r'phone'] = phone;
  }
  if (language != null) {
    json[r'language'] = language;
  }
  if (website != null) {
    json[r'website'] = website;
  }
  return json;
}