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