-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuid.yaml
35 lines (35 loc) · 1.4 KB
/
buid.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
targets:
$default:
builders:
json_serializable:
options:
# Options configure how source code is generated for every
# `@JsonSerializable`-annotated class in the package.
#
# The default value for each is listed.
#
# For usage information, reference the corresponding field in
# `JsonSerializableGenerator`.
# https://github.com/dart-lang/json_serializable/tree/master/json_serializable
#
# options not used globally:
# any_map: false
# create_factory: true
# create_to_json: true
# disallow_unrecognized_keys: false
# encode_empty_collection: true
# field_rename: none
# nullable: true
#
# Whether the generator should include fields with null values in the serialized output
include_if_null: true
# Use wrappers to minimize the number of Map/List instances created
use_wrappers: false
# Allow Map types other than Map<String, dynamic>
any_map: false
# Add extra JSON validation checks to generated `fromJson` functions
checked: true
# Call `toJson` explicitly on nested objects. Default: false
explicit_to_json: true
# Generate public `toJson` functions rather than mixin classes
generate_to_json_function: true