json_fields 0.1.0 copy "json_fields: ^0.1.0" to clipboard
json_fields: ^0.1.0 copied to clipboard

Generates type-safe, compile-time-checked JSON field path accessors for classes annotated with @JsonSerializable. Ideal for Firebase partial updates.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add json_fields

With Flutter:

 $ flutter pub add json_fields

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  json_fields: ^0.1.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:json_fields/json_fields.dart';
0
likes
160
points
95
downloads

Documentation

API reference

Publisher

verified publisherbirju.dev

Weekly Downloads

Generates type-safe, compile-time-checked JSON field path accessors for classes annotated with @JsonSerializable. Ideal for Firebase partial updates.

Repository (GitHub)
View/report issues

Topics

#json #codegen #build-runner #firebase #json-serializable

License

BSD-3-Clause (license)

Dependencies

analyzer, build, code_builder, json_annotation, source_gen, source_helper

More

Packages that depend on json_fields