ConsolidatedIdentityData.fromJson constructor
Returns a ConsolidatedIdentityData type from a JSON
Implementation
factory ConsolidatedIdentityData.fromJson(Map<String, dynamic> data) {
var self = ConsolidatedIdentityData._();
self._map["documentCode"] = data['documentCode'] == null
? throw ArgumentError('documentCode should not be null')
: Map<String, dynamic>.from(data['documentCode']);
self._map["documentNumber"] = data['documentNumber'] == null
? throw ArgumentError('documentNumber should not be null')
: Map<String, dynamic>.from(data['documentNumber']);
self._map["dateOfExpiry"] = data['dateOfExpiry'] == null
? throw ArgumentError('dateOfExpiry should not be null')
: Map<String, dynamic>.from(data['dateOfExpiry']);
self._map["issuingCountry"] = data['issuingCountry'] == null
? throw ArgumentError('issuingCountry should not be null')
: Map<String, dynamic>.from(data['issuingCountry']);
self._map["primaryIdentifier"] = data['primaryIdentifier'] == null
? throw ArgumentError('primaryIdentifier should not be null')
: Map<String, dynamic>.from(data['primaryIdentifier']);
self._map["secondaryIdentifier"] = data['secondaryIdentifier'] == null
? throw ArgumentError('secondaryIdentifier should not be null')
: Map<String, dynamic>.from(data['secondaryIdentifier']);
self._map["nameOfHolder"] = data['nameOfHolder'] == null
? throw ArgumentError('nameOfHolder should not be null')
: Map<String, dynamic>.from(data['nameOfHolder']);
self._map["personalNumber"] = data['personalNumber'] == null
? throw ArgumentError('personalNumber should not be null')
: Map<String, dynamic>.from(data['personalNumber']);
self._map["placeOfBirth"] = data['placeOfBirth'] == null
? throw ArgumentError('placeOfBirth should not be null')
: Map<String, dynamic>.from(data['placeOfBirth']);
self._map["dateOfBirth"] = data['dateOfBirth'] == null
? throw ArgumentError('dateOfBirth should not be null')
: Map<String, dynamic>.from(data['dateOfBirth']);
self._map["gender"] = data['gender'] == null
? throw ArgumentError('gender should not be null')
: Map<String, dynamic>.from(data['gender']);
self._map["nationality"] = data['nationality'] == null
? throw ArgumentError('nationality should not be null')
: Map<String, dynamic>.from(data['nationality']);
self._map["chipVerification"] = data['chipVerification'] == null
? throw ArgumentError('chipVerification should not be null')
: Map<String, dynamic>.from(data['chipVerification']);
self._map["chipCloneDetection"] = data['chipCloneDetection'] == null
? throw ArgumentError('chipCloneDetection should not be null')
: Map<String, dynamic>.from(data['chipCloneDetection']);
self._map["visualVerification"] = data['visualVerification'] == null
? throw ArgumentError('visualVerification should not be null')
: Map<String, dynamic>.from(data['visualVerification']);
self._map["selfieVerificationStatus"] =
data['selfieVerificationStatus'] == null
? throw ArgumentError('selfieVerificationStatus should not be null')
: Map<String, dynamic>.from(data['selfieVerificationStatus']);
self._map["selfieVerificationProfile"] =
data['selfieVerificationProfile'] == null
? throw ArgumentError(
'selfieVerificationProfile should not be null')
: Map<String, dynamic>.from(data['selfieVerificationProfile']);
return self;
}