2019-01-22 12:41:12 +01:00
|
|
|
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`.
|
|
|
|
# any_map: false
|
|
|
|
# checked: false
|
|
|
|
# create_factory: true
|
|
|
|
# create_to_json: true
|
|
|
|
# disallow_unrecognized_keys: false
|
|
|
|
# explicit_to_json: false
|
2019-02-21 11:51:49 +01:00
|
|
|
# field_rename: snake
|
2019-01-22 12:41:12 +01:00
|
|
|
# generate_to_json_function: true
|
|
|
|
# include_if_null: true
|
|
|
|
# nullable: true
|
|
|
|
# use_wrappers: false
|
2019-11-06 14:27:37 +01:00
|
|
|
artemis:
|
|
|
|
options:
|
|
|
|
schema_mapping:
|
|
|
|
- schema: lib/github.schema.json
|
2020-01-07 08:07:57 +01:00
|
|
|
output: lib/graphql/gh.dart
|
|
|
|
queries_glob: lib/graphql/gh_*.graphql
|
2019-12-13 16:44:49 +01:00
|
|
|
resolve_type_field: __typename
|
|
|
|
add_query_prefix: true
|
2019-11-06 14:27:37 +01:00
|
|
|
scalar_mapping:
|
|
|
|
- graphql_type: URI
|
|
|
|
dart_type: String
|
2019-12-13 16:44:49 +01:00
|
|
|
- graphql_type: GitObjectID
|
|
|
|
dart_type: String
|