Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
1test cases
1files differ
0modified
1new
0deleted
37changed lines
+37 −0insertions / deletions
Base 988a3d6ab2ee15a18da376b15a53b475abdc8fcb · PR merge 01e1f1df935ff535d38ec5a3bdd7d66780370d24 · Head 49bc55e6a3cf11a4e85e924261e8c4960955c6fa · raw patch
Test case

test/inputs/dart/object-member-names.schema

1 generated file · +37 −0
Aschema-dartdefault / TopLevel.dart+37 −0
@@ -0,0 +1,37 @@
1+// To parse this JSON data, do
2+//
3+// final topLevel = topLevelFromJson(jsonString);
4+
5+import 'dart:convert';
6+
7+TopLevel topLevelFromJson(String str) => TopLevel.fromJson(json.decode(str));
8+
9+String topLevelToJson(TopLevel data) => json.encode(data.toJson());
10+
11+class TopLevel {
12+ final String topLevelHashCode;
13+ final String topLevelNoSuchMethod;
14+ final int topLevelRuntimeType;
15+ final bool topLevelToString;
16+
17+ TopLevel({
18+ required this.topLevelHashCode,
19+ required this.topLevelNoSuchMethod,
20+ required this.topLevelRuntimeType,
21+ required this.topLevelToString,
22+ });
23+
24+ factory TopLevel.fromJson(Map<String, dynamic> json) => TopLevel(
25+ topLevelHashCode: json["hashCode"],
26+ topLevelNoSuchMethod: json["noSuchMethod"],
27+ topLevelRuntimeType: json["runtimeType"],
28+ topLevelToString: json["toString"],
29+ );
30+
31+ Map<String, dynamic> toJson() => {
32+ "hashCode": topLevelHashCode,
33+ "noSuchMethod": topLevelNoSuchMethod,
34+ "runtimeType": topLevelRuntimeType,
35+ "toString": topLevelToString,
36+ };
37+}
No generated files match these filters.