tryDecrypt method

Future<TimeTable> tryDecrypt(
  1. String sdkId,
  2. EncryptedTimeTable timeTable
)

Implementation

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