Test case
1 generated file · +37 −0test/inputs/dart/object-member-names.schema
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.