decrypt method

Future<DecryptedTimeTable> decrypt(
  1. String sdkId,
  2. EncryptedTimeTable timeTable
)

Implementation

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