123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378 |
- class MixModel {
- List<Records> records;
- int total;
- int size;
- int current;
- bool searchCount;
- int pages;
- MixModel(
- {this.records,
- this.total,
- this.size,
- this.current,
- this.searchCount,
- this.pages});
- MixModel.fromJson(Map<String, dynamic> json) {
- if (json['records'] != null) {
- records = new List<Records>();
- json['records'].forEach((v) {
- records.add(new Records.fromJson(v));
- });
- }
- total = json['total'];
- size = json['size'];
- current = json['current'];
- searchCount = json['searchCount'];
- pages = json['pages'];
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- if (this.records != null) {
- data['records'] = this.records.map((v) => v.toJson()).toList();
- }
- data['total'] = this.total;
- data['size'] = this.size;
- data['current'] = this.current;
- data['searchCount'] = this.searchCount;
- data['pages'] = this.pages;
- return data;
- }
- }
- class Records {
- int id;
- int uid;
- int createTime;
- String createBy;
- int updateTime;
- String updateBy;
- String title;
- String expression;
- String solution;
- String imgs;
- int brandId;
- int expert;
- double reward;
- int lockFlag;
- int hotFlag;
- int statuz;
- int favoriteNum;
- int likeNum;
- int browseNum;
- int tipNum;
- int examineFlag;
- String notExamineReason;
- int validPeriod;
- String userName;
- String brandName;
- String avatarUrl;
- int isLike;
- int isFavorite;
- String descr;
- String cover;
- String url;
- String userId;
- int payNum;
- int checkFlag;
- String checkComment;
- int platformFlag;
- String nickname;
- int favoriteId;
- int likeId;
- String job;
- double upperSalary;
- double lowerSalary;
- int upperWorking;
- int lowerWorking;
- int eduLevel;
- String address;
- int companyId;
- String info;
- int sort;
- String reason;
- String typeName;
- String eduName;
- Company company;
- int isApply;
- String name;
- double price;
- double discountPrice;
- String manufacturer;
- String telephone;
- String bname;
- String provinceName;
- String cityName;
- String companyName;
- Records({
- this.id,
- this.uid,
- this.createTime,
- this.createBy,
- this.updateTime,
- this.updateBy,
- this.title,
- this.expression,
- this.solution,
- this.imgs,
- this.brandId,
- this.expert,
- this.reward,
- this.lockFlag,
- this.hotFlag,
- this.statuz,
- this.favoriteNum,
- this.likeNum,
- this.browseNum,
- this.tipNum,
- this.examineFlag,
- this.notExamineReason,
- this.validPeriod,
- this.userName,
- this.brandName,
- this.avatarUrl,
- this.isLike,
- this.isFavorite,
- this.descr,
- this.cover,
- this.url,
- this.userId,
- this.payNum,
- this.checkFlag,
- this.checkComment,
- this.platformFlag,
- this.nickname,
- this.favoriteId,
- this.likeId,
- this.job,
- this.upperSalary,
- this.lowerSalary,
- this.upperWorking,
- this.lowerWorking,
- this.eduLevel,
- this.address,
- this.companyId,
- this.info,
- this.sort,
- this.reason,
- this.typeName,
- this.eduName,
- this.company,
- this.isApply,
- this.name,
- this.price,
- this.discountPrice,
- this.manufacturer,
- this.telephone,
- this.bname,
- this.provinceName,
- this.cityName,
- this.companyName,
- // this.sname,
- });
- Records.fromJson(Map<String, dynamic> json) {
- id = json['id'];
- name = json['name'] !=null ? json['name'] : json['sname'];
- brandName =json['brandName'] !=null?json['brandName']:json['bname'];
- uid = json['uid'];
- createTime = json['createTime'];
- createBy = json['createBy'];
- updateTime = json['updateTime'];
- updateBy = json['updateBy'];
- title = json['title'];
- expression = json['expression'];
- solution = json['solution'];
- imgs = json['imgs'];
- brandId = json['brandId'];
- expert = json['expert'];
- reward = json['reward'];
- lockFlag = json['lockFlag'];
- hotFlag = json['hotFlag'];
- statuz = json['statuz'];
- favoriteNum = json['favoriteNum'];
- likeNum = json['likeNum'];
- browseNum = json['browseNum'];
- tipNum = json['tipNum'];
- examineFlag = json['examineFlag'];
- notExamineReason = json['notExamineReason'];
- validPeriod = json['validPeriod'];
- userName = json['userName'];
- avatarUrl = json['avatarUrl'];
- isLike = json['isLike'];
- isFavorite = json['isFavorite'];
- descr = json['descr'];
- cover = json['cover'];
- url = json['url'];
- userId = json['userId'];
- payNum = json['payNum'];
- checkFlag = json['checkFlag'];
- checkComment = json['checkComment'];
- platformFlag = json['platformFlag'];
- nickname = json['nickname'];
- favoriteId = json['favoriteId'];
- likeId = json['likeId'];
- job = json['job'];
- upperSalary = json['upperSalary'];
- lowerSalary = json['lowerSalary'];
- upperWorking = json['upperWorking'];
- lowerWorking = json['lowerWorking'];
- eduLevel = json['eduLevel'];
- address = json['address'];
- companyId = json['companyId'];
- info = json['info'];
- sort = json['sort'];
- reason = json['reason'];
- typeName = json['typeName'];
- eduName = json['eduName'];
- company =
- json['company'] != null ? new Company.fromJson(json['company']) : null;
- isApply = json['isApply'];
- // name = json['name'];
- price = json['price'];
- discountPrice = json['discountPrice'];
- manufacturer = json['manufacturer'];
- telephone = json['telephone'];
- bname = json['bname'];
- provinceName = json['provinceName'];
- cityName = json['cityName'];
- companyName = json['companyName'];
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['companyName'] = this.companyName;
- data['id'] = this.id;
- data['uid'] = this.uid;
- data['createTime'] = this.createTime;
- data['createBy'] = this.createBy;
- data['updateTime'] = this.updateTime;
- data['updateBy'] = this.updateBy;
- data['title'] = this.title;
- data['expression'] = this.expression;
- data['solution'] = this.solution;
- data['imgs'] = this.imgs;
- data['brandId'] = this.brandId;
- data['expert'] = this.expert;
- data['reward'] = this.reward;
- data['lockFlag'] = this.lockFlag;
- data['hotFlag'] = this.hotFlag;
- data['statuz'] = this.statuz;
- data['favoriteNum'] = this.favoriteNum;
- data['likeNum'] = this.likeNum;
- data['browseNum'] = this.browseNum;
- data['tipNum'] = this.tipNum;
- data['examineFlag'] = this.examineFlag;
- data['notExamineReason'] = this.notExamineReason;
- data['validPeriod'] = this.validPeriod;
- data['userName'] = this.userName;
- data['brandName'] = this.brandName;
- data['avatarUrl'] = this.avatarUrl;
- data['isLike'] = this.isLike;
- data['isFavorite'] = this.isFavorite;
- data['descr'] = this.descr;
- data['cover'] = this.cover;
- data['url'] = this.url;
- data['userId'] = this.userId;
- data['payNum'] = this.payNum;
- data['checkFlag'] = this.checkFlag;
- data['checkComment'] = this.checkComment;
- data['platformFlag'] = this.platformFlag;
- data['nickname'] = this.nickname;
- data['favoriteId'] = this.favoriteId;
- data['likeId'] = this.likeId;
- data['job'] = this.job;
- data['upperSalary'] = this.upperSalary;
- data['lowerSalary'] = this.lowerSalary;
- data['upperWorking'] = this.upperWorking;
- data['lowerWorking'] = this.lowerWorking;
- data['eduLevel'] = this.eduLevel;
- data['address'] = this.address;
- data['companyId'] = this.companyId;
- data['info'] = this.info;
- data['sort'] = this.sort;
- data['reason'] = this.reason;
- data['typeName'] = this.typeName;
- data['eduName'] = this.eduName;
- if (this.company != null) {
- data['company'] = this.company.toJson();
- }
- data['isApply'] = this.isApply;
- data['name'] = this.name;
- data['price'] = this.price;
- data['discountPrice'] = this.discountPrice;
- data['manufacturer'] = this.manufacturer;
- data['telephone'] = this.telephone;
- data['bname'] = this.bname;
- data['provinceName'] = this.provinceName;
- data['cityName'] = this.cityName;
- // data['sname'] = this.sname;
- return data;
- }
- }
- class Company {
- int id;
- int createTime;
- String createBy;
- int updateTime;
- String updateBy;
- String name;
- String address;
- String corporator;
- String telephone;
- String mainbusiness;
- int type;
- String companySize;
- int top_flag;
- Company(
- {this.id,
- this.createTime,
- this.createBy,
- this.updateTime,
- this.updateBy,
- this.name,
- this.address,
- this.corporator,
- this.telephone,
- this.mainbusiness,
- this.type,
- this.companySize,
- this.top_flag});
- Company.fromJson(Map<String, dynamic> json) {
- id = json['id'];
- createTime = json['createTime'];
- createBy = json['createBy'];
- updateTime = json['updateTime'];
- updateBy = json['updateBy'];
- name = json['name'];
- address = json['address'];
- corporator = json['corporator'];
- telephone = json['telephone'];
- mainbusiness = json['mainbusiness'];
- type = json['type'];
- companySize = json['companySize'];
- }
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['id'] = this.id;
- data['createTime'] = this.createTime;
- data['createBy'] = this.createBy;
- data['updateTime'] = this.updateTime;
- data['updateBy'] = this.updateBy;
- data['name'] = this.name;
- data['address'] = this.address;
- data['corporator'] = this.corporator;
- data['telephone'] = this.telephone;
- data['mainbusiness'] = this.mainbusiness;
- data['type'] = this.type;
- data['companySize'] = this.companySize;
- return data;
- }
- }
|