createClassification method

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

Implementation

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