Skip to content

Commit ba2526c

Browse files
committed
update
1 parent 7e65805 commit ba2526c

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

mapper/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ While Google's `json_serializable` is the standard for JSON serialization in Dar
3434

3535
In summary, `json_serializable` is the more standard, straightforward, and widely adopted solution from the Dart team. `dart_json_mapper` offers a more feature-rich, "batteries-included" experience with more powerful out-of-the-box capabilities, potentially at the cost of being a less common choice.
3636

37+
![](banner.svg)
38+
3739
* [Basic setup](#basic-setup)
3840
* [Annotations](#annotations)
3941
* [Builder](#builder)
@@ -80,7 +82,6 @@ dependencies:
8082
dart_json_mapper:
8183
dev_dependencies:
8284
build_runner:
83-
dart_json_mapper_builder:
8485
```
8586
8687
Say, you have a dart program *main.dart* having some classes intended to be traveling to JSON and back.
@@ -128,12 +129,11 @@ targets:
128129
builders:
129130
dart_json_mapper:
130131
generate_for:
131-
# In this example, we want to generate code for all files in the `lib` directory.
132-
- lib/**.dart
133-
132+
# here should be listed entry point files having 'void main()' function
133+
- lib/main.dart
134134
# dart_json_mapper is a wrapper around the reflectable builder.
135135
# This configuration is needed to prevent the original reflectable builder from running.
136-
reflectable:
136+
reflectable_builder:
137137
generate_for:
138138
- no/files
139139
```

mapper/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ targets:
2929
dart_json_mapper:
3030
options:
3131
iterables: List, Set
32-
reflectable:
32+
reflectable_builder:
3333
generate_for:
3434
- no/files

perf-test/build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
targets:
22
$default:
33
builders:
4+
build_web_compilers:entrypoint:
5+
generate_for:
6+
- test/unit/*.dart
47
dart_json_mapper:
58
options:
69
iterables: List, Set

0 commit comments

Comments
 (0)