debugStartAuth method
Implementation
@override
Future<Map<String, dynamic>> debugStartAuth(
IAMPASSStartAuthenticationParams params) async {
String encodedParams = jsonEncode(params.toJson());
Map<String, String> args = {"params": encodedParams};
final result =
await methodChannel.invokeMethod<String>('debugStartAuth', args);
if (result != null) {
Map<String, dynamic> valueMap = jsonDecode(result);
Map<String, dynamic> a = valueMap['session'];
Map<String, dynamic> b = valueMap['request'];
IAMPASSAuthenticationRequest request =
IAMPASSAuthenticationRequest.fromJson(b);
IAMPASSAuthenticationSession session =
IAMPASSAuthenticationSession.fromJson(a);
return {'request': request, 'session': session};
}
return {'request': null, 'session': null};
}