modifyTimeTable method

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

Implementation

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