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