1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
| class Article { int errorCode; String errorMsg; ArticleData data; Article(this.errorCode, this.errorMsg, this.data);
Article.formJson(Map<String, dynamic> json) { Article( errorCode= json['errorCode'], errorMsg = json['errorMsg'], data = ArticleData.fromJson(json['data']) ); } }
class ArticleData { int curPage; int offset; bool over; int pageCount; int size; int total; List<Person> datas;
ArticleData(this.curPage, this.offset, this.over, this.pageCount, this.size, this.total, this.datas);
ArticleData.fromJson(Map<String, dynamic> json) { var personList = List<Person>(); for (Map<String, dynamic> map in json['datas']) { personList.add(Person.fromJson(map)); }
ArticleData( curPage = json['curPage'], offset = json['curPage'], over = json['over'], pageCount = json['pageCount'], size = json['size'], total = json['total'], datas = personList); } }
class Person { String apkLink; int audit; String author; bool canEdit; int chapterId; String chapterName; bool collect; int courseId; String desc; String descMd; String envelopePic; bool fresh; String host; int id; String link; String niceDate; String niceShareDate; String origin; String prefix; String projectLink; int publishTime; int realSuperChapterId; int selfVisible; int shareDate; String shareUser; int superChapterId; String superChapterName; List<Tag> tags; String title; int type; int userId; int visible; int zan;
Person( this.apkLink, this.audit, this.author, this.canEdit, this.chapterId, this.chapterName, this.collect, this.courseId, this.desc, this.descMd, this.envelopePic, this.fresh, this.host, this.id, this.link, this.niceDate, this.niceShareDate, this.origin, this.prefix, this.projectLink, this.publishTime, this.realSuperChapterId, this.selfVisible, this.shareDate, this.shareUser, this.superChapterId, this.superChapterName, this.tags, this.title, this.type, this.userId, this.visible, this.zan);
Person.fromJson(Map<String, dynamic> json) { var tagList = List<Tag>(); for (Map<String, dynamic> map in json['tags']) { tagList.add(Tag.fromJson(map)); } Person( apkLink = json['apkLink'], audit = json['audit'], author = json['author'], canEdit = json['canEdit'], chapterId = json['chapterId'], chapterName = json['chapterName'], collect = json['collect'], courseId = json['courseId'], desc = json['desc'], descMd = json['descMd'], envelopePic = json['envelopePic'], fresh = json['fresh'], host = json['host'], id = json['id'], link = json['link'], niceDate = json['niceDate'], niceShareDate = json['niceShareDate'], origin = json['origin'], prefix = json['prefix'], projectLink = json['projectLink'], publishTime = json['publishTime'], realSuperChapterId = json['realSuperChapterId'], selfVisible = json['selfVisible'], shareDate = json['shareDate'], shareUser = json['shareUser'], superChapterId = json['superChapterId'], superChapterName = json['superChapterName'], tags = tagList, title = json['title'], type = json['type'], userId = json['userId'], visible = json['visible'], zan = json['zan']); } }
class Tag { String name; String url;
Tag(this.name, this.url);
Tag.fromJson(Map<String, dynamic> json) { Tag(name = json['name'], url = json['url']); } }
|