schultek / dart_mappable

Improved json serialization and data classes with full support for generics, inheritance, customization and more.
https://pub.dev/packages/dart_mappable
MIT License
135 stars 20 forks source link

possibility to change DateMapper encoding type #176

Closed chirastefan closed 4 months ago

chirastefan commented 4 months ago

Is there a way to change the encoding type of DateMapper besides creating a custom Mapper from DateMapper?

schultek commented 4 months ago

https://pub.dev/documentation/dart_mappable/latest/topics/Models-topic.html

At te bottom there is a sectin about DateTime encoding

chirastefan commented 4 months ago

"To change the mode, set DateTimeMapper.encodingMode to any value of the DateTimeEncoding enum." where exactly? on app load?

schultek commented 4 months ago

yes anytime before using the package is fine

chirastefan commented 4 months ago

ok, it works, ty