List<String> objectsToInts() { final List<String> tmp = []; list.forEach((element) => tmp.add(element.id)); return tmp; }