File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,8 @@ void main() {
176176 final json = model.toJson ();
177177 expect (json['mission_name' ], 'Demo' );
178178 expect (json['launch_success' ], true );
179- expect ((json['links' ] as NetworkLaunchLinksModel ).flickrImages, [
179+ final linksJson = json['links' ] as Map <String , dynamic >;
180+ expect (linksJson['flickr_images' ], [
180181 'https://farm9.staticflickr.com/8619/16511407538_9a25c5d8c6_o.jpg' ,
181182 'https://farm9.staticflickr.com/8665/16697946612_1284e952b0_o.jpg' ,
182183 'https://farm9.staticflickr.com/8570/16698990475_16524a93de_o.jpg' ,
@@ -188,7 +189,8 @@ void main() {
188189 'https://farm9.staticflickr.com/8654/16511594820_451f194d53_o.jpg' ,
189190 'https://farm9.staticflickr.com/8603/16673054016_472fb42a20_o.jpg'
190191 ]);
191- expect ((json['rocket' ] as NetworkRocketModel ).name, 'Falcon 1' );
192+ final rocketJson = json['rocket' ] as Map <String , dynamic >;
193+ expect (rocketJson['rocket_name' ], 'Falcon 1' );
192194 });
193195 });
194196}
You can’t perform that action at this time.
0 commit comments