decrypt method
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);
}