createTimeTable method

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

Implementation

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