DataMatchResult constructor
DataMatchResult(
- Map<String, dynamic> nativeDataMatchResult
)
Implementation
DataMatchResult(Map<String, dynamic> nativeDataMatchResult) {
this.stateForWholeDocument = DataMatchState.values[nativeDataMatchResult['stateForWholeDocument']];
this.dateOfBirth = DataMatchState.values[nativeDataMatchResult['states'][0]['state']];
this.dateOfExpiry = DataMatchState.values[nativeDataMatchResult['states'][1]['state']];
this.documentNumber = DataMatchState.values[nativeDataMatchResult['states'][2]['state']];
}