Data.fromJson constructor
Implementation
Data.fromJson(Map<String, dynamic> json) {
additionalInfo = json['additional_info'] != null
? new AdditionalInfo.fromJson(json['additional_info'])
: null;
basicInfo = json['basic_info'] != null
? new BasicInfo.fromJson(json['basic_info'])
: null;
preferenceCenterConfiguration =
json['preference_center_configuration'] != null
? new PreferenceCenterConfiguration.fromJson(
json['preference_center_configuration'])
: null;
if (json['privacy_note'] != null) {
privacyNote = <PrivacyNote>[];
json['privacy_note'].forEach((v) {
privacyNote!.add(new PrivacyNote.fromJson(v));
});
}
dsr = json['dsr'] != null ? new Dsr.fromJson(json['dsr']) : null;
if (json['ucm_preference_form'] != null) {
ucmPreferenceForm = <UcmPreferenceForm>[];
json['ucm_preference_form'].forEach((v) {
ucmPreferenceForm!.add(new UcmPreferenceForm.fromJson(v));
});
}
}