modifyClassification method

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

Implementation

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