getClassification method
Implementation
Future<EncryptedClassification?> getClassification(String sdkId, String entityId) async {
final res = await _methodChannel.invokeMethod<String>(
'ClassificationBasicApi.getClassification',
{
"sdkId": sdkId,
"entityId": jsonEncode(entityId),
}
).catchError(convertPlatformException);
if (res == null) throw AssertionError("received null result from platform method getClassification");
final parsedResJson = jsonDecode(res);
return parsedResJson == null ? null : EncryptedClassification.fromJSON(parsedResJson);
}