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