pocketbase_utils 0.0.7
pocketbase_utils: ^0.0.7 copied to clipboard
pocketbase_utils is a dart library that generates Dart models code from a PocketBase collections scheme json file.
Changelog #
0.0.7 #
- Added custom json convertion methods for the
datetype of field which allows to handle a case when the pocketbase backend returns an empty string when theDateTimevalue is empty. - Upgrade dependencies
0.0.6 #
- Determine if a field has an
intordoubletype - min/max values are added to the class definition as
staticconstvalues.
0.0.5 #
copyWithmethod is added to the gererated Records- Take the values from
toJSONwhen runningtakeDifforforCreateRequestof a Record
0.0.4 #
- Fix select field enums when an option isn't complient to variable name
0.0.3 #
AuthRecordextends fromBaseRecord- The
BaseRecordextendsEquatable - Added
_takeDiffmethod to the generated record class to get a Map of differences - Added
_forCreateRequestMethodmethod to the generated record class to get a Map of values for the "Create" request - Added
EmptyDateTimeto be able to diff it with null in_takeDiff - Generate options of the
selecttype of the field
0.0.2 #
- Add
fromRecordModelfactory to the generated class - Read
collectionIdandcollectionNamefrom the RecordModel - Set to read
jsonfield type asdynamic
0.0.1 #
- Create typesafe models from
pb_schema.json