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