jaguar_orm icon indicating copy to clipboard operation
jaguar_orm copied to clipboard

Use `Duration` Type as field or how customize serialising

Open rubiktubik opened this issue 5 years ago • 3 comments

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

rubiktubik avatar Jun 28 '19 20:06 rubiktubik

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

tejainece avatar Jun 28 '19 20:06 tejainece

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

rubiktubik avatar Jun 29 '19 13:06 rubiktubik

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

tejainece avatar Jun 29 '19 16:06 tejainece