deleteTimeTables method

Future<List<DocIdentifier>> deleteTimeTables(
  1. String sdkId,
  2. List<TimeTable> timeTables
)

Implementation

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