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
|
2019-12-07 08:28:43 +01:00
|
|
|
output: lib/graphql/github_user.dart
|
|
|
|
queries_glob: lib/graphql/github_user.graphql
|
2019-12-06 14:51:33 +01:00
|
|
|
resolve_type_field: __typename
|
2019-12-07 08:28:43 +01:00
|
|
|
add_query_prefix: true
|
2019-12-07 09:12:18 +01:00
|
|
|
- schema: lib/github.schema.json
|
|
|
|
output: lib/graphql/github_repository.dart
|
|
|
|
queries_glob: lib/graphql/github_repository.graphql
|
|
|
|
resolve_type_field: __typename
|
|
|
|
add_query_prefix: true
|
2019-12-07 09:39:56 +01:00
|
|
|
- schema: lib/github.schema.json
|
|
|
|
output: lib/graphql/github_object.dart
|
|
|
|
queries_glob: lib/graphql/github_object.graphql
|
|
|
|
resolve_type_field: __typename
|
|
|
|
add_query_prefix: true
|
2019-11-06 14:27:37 +01:00
|
|
|
scalar_mapping:
|
|
|
|
- graphql_type: URI
|
|
|
|
dart_type: String
|