toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  if (this.additionalInfo != null) {
    data['additional_info'] = this.additionalInfo!.toJson();
  }
  if (this.basicInfo != null) {
    data['basic_info'] = this.basicInfo!.toJson();
  }
  if (this.preferenceCenterConfiguration != null) {
    data['preference_center_configuration'] =
        this.preferenceCenterConfiguration!.toJson();
  }
  if (this.privacyNote != null) {
    data['privacy_note'] = this.privacyNote!.map((v) => v.toJson()).toList();
  }
  if (this.dsr != null) {
    data['dsr'] = this.dsr!.toJson();
  }
  if (this.ucmPreferenceForm != null) {
    data['ucm_preference_form'] =
        this.ucmPreferenceForm!.map((v) => v.toJson()).toList();
  }
  return data;
}