pocketbase_plus 0.0.4 copy "pocketbase_plus: ^0.0.4" to clipboard
pocketbase_plus: ^0.0.4 copied to clipboard

Pocketbase Plus is a Dart package that automates model generation for your PocketBase projects. Quick setup, less boilerplate, more time to build awesome apps!

example/lib/example.dart

import 'package:example/models/matches.dart';
import 'package:pocketbase/pocketbase.dart';

Future<void> main(List<String> arguments) async {
  final pb = PocketBase('http://exmaple.com');

  final data = await pb.collection('match_requests').getFullList();

  final matches = data.map((e) => MatchesModel.fromModel(e));
  print(matches.first.id);
  print(matches.first.created);
}
1
likes
140
points
39
downloads

Publisher

unverified uploader

Weekly Downloads

Pocketbase Plus is a Dart package that automates model generation for your PocketBase projects. Quick setup, less boilerplate, more time to build awesome apps!

Repository (GitHub)

Topics

#pocketbase #json #models

Documentation

API reference

License

MIT (license)

Dependencies

args, path, pocketbase, yaml

More

Packages that depend on pocketbase_plus