11import 'dart:convert' show json;
22
33class ListsResp {
4-
54 List <List <List <int >>> asd;
65 List <int > qaz;
76 List <List <List <Zxc >>> qwe;
87
98 ListsResp .fromParams ({this .asd, this .qaz, this .qwe});
109
11- factory ListsResp (jsonStr) => jsonStr == null ? null : jsonStr is String ? new ListsResp .fromJson (json.decode (jsonStr)) : new ListsResp .fromJson (jsonStr);
10+ factory ListsResp (jsonStr) => jsonStr == null
11+ ? null
12+ : jsonStr is String
13+ ? ListsResp .fromJson (json.decode (jsonStr))
14+ : ListsResp .fromJson (jsonStr);
1215
1316 ListsResp .fromJson (jsonRes) {
1417 asd = jsonRes['asd' ] == null ? null : [];
1518
16- for (var asdItem in asd == null ? [] : jsonRes['asd' ]){
17- List <List <int >> asdChild = asdItem == null ? null : [];
18- for (var asdItemItem in asdChild == null ? [] : asdItem){
19- List <int > asdChildChild = asdItemItem == null ? null : [];
20- for (var asdItemItemItem in asdChildChild == null ? [] : asdItemItem){
21- asdChildChild.add (asdItemItemItem);
22- }
23- asdChild.add (asdChildChild);
24- }
19+ for (var asdItem in asd == null ? [] : jsonRes['asd' ]) {
20+ List <List <int >> asdChild = asdItem == null ? null : [];
21+ for (var asdItemItem in asdChild == null ? [] : asdItem) {
22+ List <int > asdChildChild = asdItemItem == null ? null : [];
23+ for (var asdItemItemItem in asdChildChild == null ? [] : asdItemItem) {
24+ asdChildChild.add (asdItemItemItem);
25+ }
26+ asdChild.add (asdChildChild);
27+ }
2528 asd.add (asdChild);
2629 }
2730
2831 qaz = jsonRes['qaz' ] == null ? null : [];
2932
30- for (var qazItem in qaz == null ? [] : jsonRes['qaz' ]){
31- qaz.add (qazItem);
33+ for (var qazItem in qaz == null ? [] : jsonRes['qaz' ]) {
34+ qaz.add (qazItem);
3235 }
3336
3437 qwe = jsonRes['qwe' ] == null ? null : [];
3538
36- for (var qweItem in qwe == null ? [] : jsonRes['qwe' ]){
37- List <List <Zxc >> qweChild = qweItem == null ? null : [];
38- for (var qweItemItem in qweChild == null ? [] : qweItem){
39- List <Zxc > qweChildChild = qweItemItem == null ? null : [];
40- for (var qweItemItemItem in qweChildChild == null ? [] : qweItemItem){
41- qweChildChild.add (qweItemItemItem == null ? null : new Zxc .fromJson (qweItemItemItem));
42- }
43- qweChild.add (qweChildChild);
44- }
39+ for (var qweItem in qwe == null ? [] : jsonRes['qwe' ]) {
40+ List <List <Zxc >> qweChild = qweItem == null ? null : [];
41+ for (var qweItemItem in qweChild == null ? [] : qweItem) {
42+ List <Zxc > qweChildChild = qweItemItem == null ? null : [];
43+ for (var qweItemItemItem in qweChildChild == null ? [] : qweItemItem) {
44+ qweChildChild.add (
45+ qweItemItemItem == null ? null : Zxc .fromJson (qweItemItemItem));
46+ }
47+ qweChild.add (qweChildChild);
48+ }
4549 qwe.add (qweChild);
4650 }
4751 }
4852
4953 @override
5054 String toString () {
51- return '{"asd": $asd ,"qaz": $qaz ,"qwe": $qwe }' ;
55+ return '{"asd": $asd , "qaz": $qaz , "qwe": $qwe }' ;
5256 }
5357}
5458
5559class Zxc {
56-
5760 int zxc;
5861
5962 Zxc .fromParams ({this .zxc});
@@ -67,4 +70,3 @@ class Zxc {
6770 return '{"zxc": $zxc }' ;
6871 }
6972}
70-
0 commit comments