When querying Firebase you can cast the result into a class using DataSnapshot.getValue(Class aClass) but Firebase need, similarly to JPA, a no arguments constructor and all getters and setters.
The No-arg compiler plugin seems to be the answer but when trying to cast the result into a data class:
com.google.firebase.database.DatabaseException: Class it.unito.lamba.projector.data.Project does not define a no-argument constructor. If you are using ProGuard, make sure these constructors are not stripped.
To solve my issue i went for this solution. Any idea why it’s not working?