File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
44
5- // @dart=2.12
6-
75/// Name used for closure argument when generating calls to `map` .
86const closureArg = 'e' ;
97
Original file line number Diff line number Diff line change 77import 'dart:collection' ;
88
99import 'package:json_annotation/json_annotation.dart' ;
10- import 'package:json_serializable/src/constants.dart' ;
1110
1211// ignore: import_of_legacy_library_into_null_safe
1312import 'package:source_gen_test/annotations.dart' ;
1413
14+ part 'constants_copy.dart' ;
15+
1516part 'checked_test_input.dart' ;
1617
1718part 'core_subclass_type_input.dart' ;
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
2+ // for details. All rights reserved. Use of this source code is governed by a
3+ // BSD-style license that can be found in the LICENSE file.
4+
5+ // @dart=2.12
6+
7+ part of '_json_serializable_test_input.dart' ;
8+
9+ // TODO: remove this and return link to lib/src/constants.dart once this
10+ // package runs with full null safety
11+
12+ /// Name used for closure argument when generating calls to `map` .
13+ const closureArg = 'e' ;
14+
15+ const generatedLocalVarName = 'val' ;
16+ const toJsonMapHelperName = 'writeNotNull' ;
17+
18+ const converterOrKeyInstructions = r'''
19+ * Use `JsonConverter`
20+ https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonConverter-class.html
21+ * Use `JsonKey` fields `fromJson` and `toJson`
22+ https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonKey/fromJson.html
23+ https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonKey/toJson.html''' ;
You can’t perform that action at this time.
0 commit comments