modifyClassification method

Future<DecryptedClassification> modifyClassification(
  1. String sdkId,
  2. DecryptedClassification entity
)

Implementation

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