CustomerData.fromJson constructor
CustomerData.fromJson(
- Map<String, dynamic> json
)
Implementation
CustomerData.fromJson(Map<String, dynamic> json) {
customerId = json['customer_id'];
collectionTemplateId = json['collection_template_id'];
consentSource = json['consent_source'];
geolocation = json['geolocation'];
continent = json['continent'];
subjectIdentityId = json['subject_identity_id'];
subjectIdentityValue = json['subject_identity_value'];
subjectIdentityName = json['subject_identity_name'];
verificationKey = json['verification_key'];
if (json['pii_data'] != null) {
piiData = <PiiData>[];
json['pii_data'].forEach((v) {
piiData!.add(new PiiData.fromJson(v));
});
}
if (json['consent_status'] != null) {
consentStatus = <ConsentStatus>[];
json['consent_status'].forEach((v) {
consentStatus!.add(new ConsentStatus.fromJson(v));
});
}
}