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