DocumentSelection.fromJson constructor
DocumentSelection.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DocumentSelection.fromJson(Map<String, dynamic> json) {
rejectUnknownKeys('DocumentSelection', json, const {
'id',
'documentType',
'issuingCountry',
'allCountries',
});
return DocumentSelection(
id: json['id'] as String?,
documentType: DocumentType.fromJson(json['documentType'] as String),
issuingCountry: json['issuingCountry'] as String?,
allCountries: json['allCountries'] as bool?,
);
}