verifyOnfido method
Implementation
@override
Future<VerifyOnfidoResponse> verifyOnfido({required String sessionId}) async {
final result =
await methodChannel.invokeMethod<Map>('retrieveOnfidoResponse', {
...{'sessionId': sessionId}
});
if (result != null) {
return VerifyOnfidoResponse.fromJson(Map<String, dynamic>.from(result));
} else {
throw Exception('Could not obtain Onfido Response: $result');
}
}