modifyTimeTable method

Future<TimeTable> modifyTimeTable(
  1. String sdkId,
  2. TimeTable entity
)

Implementation

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