decrypt method

Future<DecryptedClassification> decrypt(
  1. String sdkId,
  2. EncryptedClassification classification
)

Implementation

Future<DecryptedClassification> decrypt(String sdkId, EncryptedClassification classification) async {
	final res = await _methodChannel.invokeMethod<String>(
		'ClassificationApi.decrypt',
		{
			"sdkId": sdkId,
			"classification": jsonEncode(EncryptedClassification.encode(classification)),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method decrypt");
	final parsedResJson = jsonDecode(res);
	return DecryptedClassification.fromJSON(parsedResJson);
}