modifyTimeTable method

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

Implementation

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