@@ -77,17 +77,13 @@ void main() {
7777 var element = await _getClassForCodeString ('ParentObject' );
7878 var output = await _generator.generate (element, null );
7979
80- expect (output, isNotNull);
81-
8280 expect (output, contains ('new ChildObject.fromJson' ));
8381 });
8482
8583 test ('class with child list of json-able objects' , () async {
8684 var element = await _getClassForCodeString ('ParentObjectWithChildren' );
8785 var output = await _generator.generate (element, null );
8886
89- expect (output, isNotNull);
90-
9187 expect (output, contains ('.toList()' ));
9288 expect (output, contains ('new ChildObject.fromJson' ));
9389 });
@@ -97,17 +93,13 @@ void main() {
9793 await _getClassForCodeString ('ParentObjectWithDynamicChildren' );
9894 var output = await _generator.generate (element, null );
9995
100- expect (output, isNotNull);
101-
10296 expect (output, contains ('(json[\' children\' ] as List)?.map(' ));
10397 });
10498
10599 test ('class with list of int is cast for strong mode' , () async {
106100 var element = await _getClassForCodeString ('Person' );
107101 var output = await _generator.generate (element, null );
108102
109- expect (output, isNotNull);
110-
111103 expect (output,
112104 contains ("json['listOfInts'] as List)?.map((v0) => v0 as int)" ));
113105 });
0 commit comments