toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.numberOfVehicles != null) {
    json[r'numberOfVehicles'] = this.numberOfVehicles;
  } else {
    json[r'numberOfVehicles'] = null;
  }
  if (this.hasAutoInsurance != null) {
    json[r'hasAutoInsurance'] = this.hasAutoInsurance;
  } else {
    json[r'hasAutoInsurance'] = null;
  }
  if (this.currentIssuer != null) {
    json[r'currentIssuer'] = this.currentIssuer;
  } else {
    json[r'currentIssuer'] = null;
  }
  json[r'vehicles'] = this.vehicles;
  json[r'additionalOperators'] = this.additionalOperators;
  if (this.policyHolderInformation != null) {
    json[r'policyHolderInformation'] = this.policyHolderInformation;
  } else {
    json[r'policyHolderInformation'] = null;
  }
  return json;
}