Skip to content
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

Use Duration Type as field or how customize serialising #145

Open
rubiktubik opened this issue Jun 28, 2019 · 3 comments
Open

Use Duration Type as field or how customize serialising #145

rubiktubik opened this issue Jun 28, 2019 · 3 comments

Comments

@rubiktubik
Copy link

Hello Community,
i want to use jaguar_orm in flutter.
When i use the Duration-Type i get an exception from in the generated *.jorm-File:

Field type not recognised: Duration!

When the Duration-Type is not supported. How can i customize the serialisation?

Regards
rubiktubik

@tejainece
Copy link
Member

@rubiktubik Durations will be supported in version 4.x.x which is being worked on.

@rubiktubik
Copy link
Author

Thank you for the quick answer! Is there another way in the meantime?

@tejainece
Copy link
Member

Use ignore to ignore duration field and add string getter and setter that will actually sets the duration field is one idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants