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