class ChapterPageComick { Chapter? chapter; bool? matureContent; List? chapters; String? canonical; String? seoTitle; String? seoDescription; String? chapTitle; bool? checkVol2Chap1; ChapterPageComick( {this.chapter, this.matureContent, this.chapters, this.canonical, this.seoTitle, this.seoDescription, this.chapTitle, this.checkVol2Chap1}); ChapterPageComick.fromJson(Map json) { chapter = json['chapter'] != null ? Chapter.fromJson(json['chapter']) : null; matureContent = json['matureContent']; if (json['chapters'] != null) { chapters = []; json['chapters'].forEach((v) { chapters!.add(Chapters.fromJson(v)); }); } canonical = json['canonical']; seoTitle = json['seoTitle']; seoDescription = json['seoDescription']; chapTitle = json['chapTitle']; checkVol2Chap1 = json['checkVol2Chap1']; } } class Chapter { int? id; String? chap; String? title; String? server; String? hid; String? hash; List? groupName; String? createdAt; String? mdid; int? commentCount; int? upCount; int? downCount; String? status; String? lang; List? images; Chapter( {this.id, this.chap, this.title, this.server, this.hid, this.hash, this.groupName, this.createdAt, this.mdid, this.commentCount, this.upCount, this.downCount, this.status, this.lang, this.images}); Chapter.fromJson(Map json) { id = json['id']; chap = json['chap']; title = json['title']; server = json['server']; hid = json['hid']; hash = json['hash']; createdAt = json['created_at']; mdid = json['mdid']; commentCount = json['comment_count']; upCount = json['up_count']; downCount = json['down_count']; status = json['status']; lang = json['lang']; if (json['images'] != null) { images = []; json['images'].forEach((v) { images!.add(Images.fromJson(v)); }); } } } class Images { String? url; int? w; int? h; Images({this.url, this.w, this.h}); Images.fromJson(Map json) { url = json['url']; w = json['w']; h = json['h']; } Map toJson() { final Map data = {}; data['url'] = url; data['w'] = w; data['h'] = h; return data; } } class Chapters { String? chap; String? vol; String? hid; String? lang; int? id; String? title; Chapters({this.chap, this.vol, this.hid, this.lang, this.id, this.title}); Chapters.fromJson(Map json) { chap = json['chap']; vol = json['vol']; hid = json['hid']; lang = json['lang']; id = json['id']; title = json['title']; } }