pocketbase_utils 0.0.3 copy "pocketbase_utils: ^0.0.3" to clipboard
pocketbase_utils: ^0.0.3 copied to clipboard

outdated

pocketbase_utils is a dart library that generates Dart models code from a PocketBase collections scheme json file.

0.0.3 #

  • AuthRecord extends from BaseRecord
  • The BaseRecord extends Equatable
  • Added _takeDiff method to the generated record class to get a Map of differences
  • Added _forCreateRequestMethod method to the generated record class to get a Map of values for the "Create" request
  • Added EmptyDateTime to be able to diff it with null in _takeDiff
  • Generate options of the select type of the field

0.0.2 #

  • Add fromRecordModel factory to the generated class
  • Read collectionId and collectionName from the RecordModel
  • Set to read json field type as dynamic

0.0.1 #

  • Create typesafe models from pb_schema.json
6
likes
0
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

pocketbase_utils is a dart library that generates Dart models code from a PocketBase collections scheme json file.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, args, code_builder, collection, dart_style, json_annotation, path, petitparser, yaml

More

Packages that depend on pocketbase_utils