Closed mstfkhazaal closed 3 months ago
Double post on Stack Overflow, please avoid that, it takes away time from actually addressing issues.
As said there:
These are warnings that these properties are skipped/ignored, not errors. Then again, it's odd that ObjectBox does not pick up the @Transient() annotation. Is it from the objectbox package?
Sorry, thanks for the warning Did you cancel the question on the Stack Overflow? but he didn't just pick up when the parameter accept null value , Map<String, dynamic>? firstName
OK, turns out this is because freezed
will create a getter for non-required properties. And the generator currently does not recognize annotations on getters, see #392.
This should be fixed with the next release as #392 will be possible.
i have this Entity
When i use Freezed
i get errors
[WARNING] objectbox_generator:resolver on lib/features/auth/domain/entities/user_entity.dart: Skipping property 'firstName': type 'Map<String, dynamic>' not supported, consider creating a relation for @Entity types (https://docs.objectbox.io/relations), or replace with getter/setter converting to a supported type (https://docs.objectbox.io/advanced/custom-types). [WARNING] objectbox_generator:resolver on lib/features/auth/domain/entities/user_entity.dart: Skipping property 'lastName': type 'Map<String, dynamic>' not supported, consider creating a relation for @Entity types (https://docs.objectbox.io/relations), or replace with getter/setter converting to a supported type (https://docs.objectbox.io/advanced/custom-types).