getTimeTables method

Future<List<EncryptedTimeTable>> getTimeTables(
  1. String sdkId,
  2. List<String> timeTableIds
)

Implementation

Future<List<EncryptedTimeTable>> getTimeTables(String sdkId, List<String> timeTableIds) async {
	final res = await _methodChannel.invokeMethod<String>(
		'TimeTableApi.encrypted.getTimeTables',
		{
			"sdkId": sdkId,
			"timeTableIds": jsonEncode(timeTableIds.map((x0) => x0).toList()),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method getTimeTables");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => EncryptedTimeTable.fromJSON(x1) ).toList();
}