-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class with getter field throws FieldNotFoundException when using fromMap/fromJson #42
Labels
Comments
Could you show me your code? |
Sorry, now I understand the error. By the moment you only have three options:
@serializable
class Person extends _$PersonSerializable {
int _id;
int get id => _id;
@override
addAll(Map map) => PersonClassMirror.setters.forEach((setter) => this[setter] = map[setter]);
} I'm going to fix this in future versions. |
I think that the problem still persists. And using
|
@luisvt Can the throwfieldnotfoundexception be removed? |
What do you mean? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I read the generated code, and the SerializableMap's code
please allow me using the easiest way
The text was updated successfully, but these errors were encountered: