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 2
2
// for details. All rights reserved. Use of this source code is governed by a
3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
- // @dart=2.12
6
-
7
5
/// Name used for closure argument when generating calls to `map` .
8
6
const closureArg = 'e' ;
9
7
Original file line number Diff line number Diff line change 7
7
import 'dart:collection' ;
8
8
9
9
import 'package:json_annotation/json_annotation.dart' ;
10
- import 'package:json_serializable/src/constants.dart' ;
11
10
12
11
// ignore: import_of_legacy_library_into_null_safe
13
12
import 'package:source_gen_test/annotations.dart' ;
14
13
14
+ part 'constants_copy.dart' ;
15
+
15
16
part 'checked_test_input.dart' ;
16
17
17
18
part '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