first commit

This commit is contained in:
编码猿
2024-09-27 01:31:25 +08:00
commit 07c46ac300
558 changed files with 37414 additions and 0 deletions

View File

@@ -0,0 +1 @@
ec25c7b1-6f31-44ab-90df-f11a67fdde74

View File

@@ -0,0 +1,164 @@
import 'AgentInfoEntity.dart';
class AgentClassListEntity {
int status;
AgentClassListData data;
AgentClassListEntity({this.status, this.data});
AgentClassListEntity.fromJson(Map<String, dynamic> json) {
status = json['status'];
data = json['data'] != null ? new AgentClassListData.fromJson(json['data']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
if (this.data != null) {
data['data'] = this.data.toJson();
}
return data;
}
}
class AgentClassListData {
dynamic total;
int num;
List<ItemList> list;
String page;
AgentClassListData({this.total, this.num, this.list, this.page});
AgentClassListData.fromJson(Map<String, dynamic> json) {
total = json['total'];
num = json['num'];
page = json['page'];
if (json['list'] != null) {
list = new List<ItemList>();
json['list'].forEach((v) {
list.add(new ItemList.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['total'] = this.total;
data['num'] = this.num;
data['page'] = this.page;
if (this.list != null) {
data['list'] = this.list.map((v) => v.toJson()).toList();
}
return data;
}
}
class ItemList {
String id;
String catid;
String title;
String renwu;
String biaoqian;
String jigou;
String bianhao;
String faxingshijian;
String shuliang;
String zhuangtai;
String shijian;
String tuijian;
String classname;
List<Biaoqianlist> biaoqianlist;
List<Biaoqianlist> jigoulist;
String renwunlist;
String isgood;
String imgSrc;
List<Biaoqianlist> renwulist;
ItemList(
{this.id,
this.catid,
this.title,
this.renwu,
this.biaoqian,
this.jigou,
this.bianhao,
this.faxingshijian,
this.shuliang,
this.zhuangtai,
this.shijian,
this.tuijian,
this.classname,
this.biaoqianlist,
this.jigoulist,
this.renwunlist,
this.isgood,
this.imgSrc,
this.renwulist});
ItemList.fromJson(Map<String, dynamic> json) {
id = json['id'];
catid = json['catid'];
title = json['title'];
renwu = json['renwu'];
biaoqian = json['biaoqian'];
jigou = json['jigou'];
bianhao = json['bianhao'];
faxingshijian = json['faxingshijian'];
shuliang = json['shuliang'];
zhuangtai = json['zhuangtai'];
shijian = json['shijian'];
tuijian = json['tuijian'];
classname = json['classname'];
if (json['biaoqianlist'] != null) {
biaoqianlist = new List<Biaoqianlist>();
json['biaoqianlist'].forEach((v) {
biaoqianlist.add(new Biaoqianlist.fromJson(v));
});
}
if (json['jigoulist'] != null) {
jigoulist = new List<Biaoqianlist>();
json['jigoulist'].forEach((v) {
jigoulist.add(new Biaoqianlist.fromJson(v));
});
}
renwunlist = json['renwunlist'];
isgood = json['isgood'];
imgSrc = json['img_src'];
if (json['renwulist'] != null) {
renwulist = new List<Biaoqianlist>();
json['renwulist'].forEach((v) {
renwulist.add(new Biaoqianlist.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['catid'] = this.catid;
data['title'] = this.title;
data['renwu'] = this.renwu;
data['biaoqian'] = this.biaoqian;
data['jigou'] = this.jigou;
data['bianhao'] = this.bianhao;
data['faxingshijian'] = this.faxingshijian;
data['shuliang'] = this.shuliang;
data['zhuangtai'] = this.zhuangtai;
data['shijian'] = this.shijian;
data['tuijian'] = this.tuijian;
data['classname'] = this.classname;
if (this.biaoqianlist != null) {
data['biaoqianlist'] = this.biaoqianlist.map((v) => v.toJson()).toList();
}
if (this.jigoulist != null) {
data['jigoulist'] = this.jigoulist.map((v) => v.toJson()).toList();
}
data['renwunlist'] = this.renwunlist;
data['isgood'] = this.isgood;
data['img_src'] = this.imgSrc;
if (this.renwulist != null) {
data['renwulist'] = this.renwulist.map((v) => v.toJson()).toList();
}
return data;
}
}

View File

@@ -0,0 +1,153 @@
class AgentInfoEntity {
int status;
AgentInfo data;
AgentInfoEntity({this.status, this.data});
AgentInfoEntity.fromJson(Map<String, dynamic> json) {
status = json['status'];
data = json['data'] != null ? new AgentInfo.fromJson(json['data']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
if (this.data != null) {
data['data'] = this.data.toJson();
}
return data;
}
}
class AgentInfo {
String id;
String catid;
String title;
String renwu;
String biaoqian;
String jigou;
String bianhao;
String faxingshijian;
String shuliang;
String zhuangtai;
String shijian;
String tuijian;
String classname;
List<Biaoqianlist> biaoqianlist;
List<Biaoqianlist> jigoulist;
String renwunlist;
String isgood;
String imgSrc;
List<Biaoqianlist> renwulist;
List<String> imgs;
AgentInfo(
{this.id,
this.catid,
this.title,
this.renwu,
this.biaoqian,
this.jigou,
this.bianhao,
this.faxingshijian,
this.shuliang,
this.zhuangtai,
this.shijian,
this.tuijian,
this.classname,
this.biaoqianlist,
this.jigoulist,
this.renwunlist,
this.isgood,
this.imgSrc,
this.renwulist,
this.imgs});
AgentInfo.fromJson(Map<String, dynamic> json) {
id = json['id'];
catid = json['catid'];
title = json['title'];
renwu = json['renwu'];
biaoqian = json['biaoqian'];
jigou = json['jigou'];
bianhao = json['bianhao'];
faxingshijian = json['faxingshijian'];
shuliang = json['shuliang'];
zhuangtai = json['zhuangtai'];
shijian = json['shijian'];
tuijian = json['tuijian'];
classname = json['classname'];
if (json['biaoqianlist'] != null) {
biaoqianlist = new List<Biaoqianlist>();
json['biaoqianlist'].forEach((v) {
biaoqianlist.add(new Biaoqianlist.fromJson(v));
});
}
if (json['jigoulist'] != null) {
jigoulist = new List<Biaoqianlist>();
json['jigoulist'].forEach((v) {
jigoulist.add(new Biaoqianlist.fromJson(v));
});
}
renwunlist = json['renwunlist'];
isgood = json['isgood'];
imgSrc = json['img_src'];
if (json['renwulist'] != null) {
renwulist = new List<Biaoqianlist>();
json['renwulist'].forEach((v) {
renwulist.add(new Biaoqianlist.fromJson(v));
});
}
imgs = json['imgs'].cast<String>();
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['catid'] = this.catid;
data['title'] = this.title;
data['renwu'] = this.renwu;
data['biaoqian'] = this.biaoqian;
data['jigou'] = this.jigou;
data['bianhao'] = this.bianhao;
data['faxingshijian'] = this.faxingshijian;
data['shuliang'] = this.shuliang;
data['zhuangtai'] = this.zhuangtai;
data['shijian'] = this.shijian;
data['tuijian'] = this.tuijian;
data['classname'] = this.classname;
if (this.biaoqianlist != null) {
data['biaoqianlist'] = this.biaoqianlist.map((v) => v.toJson()).toList();
}
if (this.jigoulist != null) {
data['jigoulist'] = this.jigoulist.map((v) => v.toJson()).toList();
}
data['renwunlist'] = this.renwunlist;
data['isgood'] = this.isgood;
data['img_src'] = this.imgSrc;
if (this.renwulist != null) {
data['renwulist'] = this.renwulist.map((v) => v.toJson()).toList();
}
data['imgs'] = this.imgs;
return data;
}
}
class Biaoqianlist {
dynamic id;
String name;
Biaoqianlist({this.id, this.name});
Biaoqianlist.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['name'] = this.name;
return data;
}
}

View File

@@ -0,0 +1,109 @@
class ClassEntity {
int _status;
String _msg;
ClassResult _result;
ClassEntity({int status, String msg, ClassResult result}) {
this._status = status;
this._msg = msg;
this._result = result;
}
int get status => _status;
set status(int status) => _status = status;
String get msg => _msg;
set msg(String msg) => _msg = msg;
ClassResult get result => _result;
set result(ClassResult result) => _result = result;
ClassEntity.fromJson(Map<String, dynamic> json) {
_status = json['status'];
_msg = json['msg'];
_result =
json['result'] != null ? new ClassResult.fromJson(json['result']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this._status;
data['msg'] = this._msg;
if (this._result != null) {
data['result'] = this._result.toJson();
}
return data;
}
}
class ClassResult {
List<Principal> _principal;
List<Principal> _additional;
Result({List<Principal> principal, List<Principal> additional}) {
this._principal = principal;
this._additional = additional;
}
List<Principal> get principal => _principal;
set principal(List<Principal> principal) => _principal = principal;
List<Principal> get additional => _additional;
set additional(List<Principal> additional) => _additional = additional;
ClassResult.fromJson(Map<String, dynamic> json) {
if (json['principal'] != null) {
_principal = new List<Principal>();
json['principal'].forEach((v) {
_principal.add(new Principal.fromJson(v));
});
}
if (json['additional'] != null) {
_additional = new List<Principal>();
json['additional'].forEach((v) {
_additional.add(new Principal.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this._principal != null) {
data['principal'] = this._principal.map((v) => v.toJson()).toList();
}
if (this._additional != null) {
data['additional'] = this._additional.map((v) => v.toJson()).toList();
}
return data;
}
}
class Principal {
int _id;
String _title;
int _page;
Principal({int id, String title, int page}) {
this._id = id;
this._title = title;
this._page = page;
}
int get id => _id;
set id(int id) => _id = id;
String get title => _title;
set title(String title) => _title = title;
int get page => _page;
set page(int page) => _page = page;
Principal.fromJson(Map<String, dynamic> json) {
_id = json['id'];
_title = json['title'];
_page = json['page'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this._id;
data['title'] = this._title;
data['page'] = this._page;
return data;
}
}

View File

@@ -0,0 +1,77 @@
import 'package:peach/entity/_.dart';
class ClassListEntity {
int status;
String msg;
ClassListResult result;
ClassListEntity({this.status, this.msg, this.result});
ClassListEntity.fromJson(Map<String, dynamic> json) {
status = json['status'];
msg = json['msg'];
result =
json['result'] != null ? new ClassListResult.fromJson(json['result']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
data['msg'] = this.msg;
if (this.result != null) {
data['result'] = this.result.toJson();
}
return data;
}
}
class ClassListResult {
String group;
int currentPage;
int totalPage;
List<HomeEntityData> data;
ClassListResult({this.group, this.currentPage, this.totalPage, this.data});
ClassListResult.fromJson(Map<String, dynamic> json) {
group = json['group'];
currentPage = json['current_page'];
totalPage = json['total_page'];
if (json['data'] != null) {
data = new List<HomeEntityData>();
json['data'].forEach((v) {
data.add(new HomeEntityData.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['group'] = this.group;
data['current_page'] = this.currentPage;
data['total_page'] = this.totalPage;
if (this.data != null) {
data['data'] = this.data.map((v) => v.toJson()).toList();
}
return data;
}
}
class ClassTags {
String title;
int id;
ClassTags({this.title, this.id});
ClassTags.fromJson(Map<String, dynamic> json) {
title = json['title'];
id = json['id'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['title'] = this.title;
data['id'] = this.id;
return data;
}
}

View File

@@ -0,0 +1,32 @@
class FreeUseEntity {
int _code;
String _error;
int _freeNumber;
FreeUseEntity({int code, String error, int freeNumber}) {
this._code = code;
this._error = error;
this._freeNumber = freeNumber;
}
int get code => _code;
set code(int code) => _code = code;
String get error => _error;
set error(String error) => _error = error;
int get freeNumber => _freeNumber;
set freeNumber(int freeNumber) => _freeNumber = freeNumber;
FreeUseEntity.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_error = json['error'];
_freeNumber = json['FreeNumber'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['error'] = this._error;
data['FreeNumber'] = this._freeNumber;
return data;
}
}

View File

@@ -0,0 +1,203 @@
class HomeEntity {
int status;
String msg;
Result result;
HomeEntity({this.status, this.msg, this.result});
HomeEntity.fromJson(Map<String, dynamic> json) {
status = json['status'];
msg = json['msg'];
result =
json['result'] != null ? new Result.fromJson(json['result']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
data['msg'] = this.msg;
if (this.result != null) {
data['result'] = this.result.toJson();
}
return data;
}
}
class Result {
Recommended recommended;
Recommended newest;
Models model;
Result({this.recommended, this.newest, this.model});
Result.fromJson(Map<String, dynamic> json) {
recommended = json['recommended'] != null
? new Recommended.fromJson(json['recommended'])
: null;
newest = json['newest'] != null
? new Recommended.fromJson(json['newest'])
: null;
model = json['model'] != null ? new Models.fromJson(json['model']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.recommended != null) {
data['recommended'] = this.recommended.toJson();
}
if (this.newest != null) {
data['newest'] = this.newest.toJson();
}
if (this.model != null) {
data['model'] = this.model.toJson();
}
return data;
}
}
class Recommended {
String title;
List<HomeEntityData> data;
Recommended({this.title, this.data});
Recommended.fromJson(Map<String, dynamic> json) {
title = json['title'];
if (json['data'] != null) {
data = new List<HomeEntityData>();
json['data'].forEach((v) {
data.add(new HomeEntityData.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['title'] = this.title;
if (this.data != null) {
data['data'] = this.data.map((v) => v.toJson()).toList();
}
return data;
}
}
class HomeEntityData {
int id;
int total;
int totalPage;
String source;
String user;
List<Tags> tags;
String title;
String preview;
HomeEntityData(
{this.id,
this.total,
this.totalPage,
this.source,
this.user,
this.tags,
this.title,
this.preview});
HomeEntityData.fromJson(Map<String, dynamic> json) {
id = json['id'];
total = json['total'];
totalPage = json['total_page'];
source = json['source'];
user = json['user'];
if (json['tags'] != null) {
tags = new List<Tags>();
json['tags'].forEach((v) {
tags.add(new Tags.fromJson(v));
});
}
title = json['title'];
preview = json['preview'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['total'] = this.total;
data['total_page'] = this.totalPage;
data['source'] = this.source;
data['user'] = this.user;
if (this.tags != null) {
data['tags'] = this.tags.map((v) => v.toJson()).toList();
}
data['title'] = this.title;
data['preview'] = this.preview;
return data;
}
}
class Tags {
String title;
int id;
Tags({this.title, this.id});
Tags.fromJson(Map<String, dynamic> json) {
title = json['title'];
id = json['id'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['title'] = this.title;
data['id'] = this.id;
return data;
}
}
class Models {
String title;
List<Res> res;
Models({this.title, this.res});
Models.fromJson(Map<String, dynamic> json) {
title = json['title'];
if (json['res'] != null) {
res = new List<Res>();
json['res'].forEach((v) {
res.add(new Res.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['title'] = this.title;
if (this.res != null) {
data['res'] = this.res.map((v) => v.toJson()).toList();
}
return data;
}
}
class Res {
int id;
String title;
String total;
String preview;
Res({this.id, this.title, this.total, this.preview});
Res.fromJson(Map<String, dynamic> json) {
id = json['id'];
title = json['title'];
total = json['total'];
preview = json['preview'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['title'] = this.title;
data['total'] = this.total;
data['preview'] = this.preview;
return data;
}
}

View File

@@ -0,0 +1,116 @@
import 'HomeEntity.dart';
class InfoEntity {
int status;
String msg;
InfoResult result;
InfoEntity({this.status, this.msg, this.result});
InfoEntity.fromJson(Map<String, dynamic> json) {
status = json['status'];
msg = json['msg'];
result =
json['result'] != null ? new InfoResult.fromJson(json['result']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
data['msg'] = this.msg;
if (this.result != null) {
data['result'] = this.result.toJson();
}
return data;
}
}
class InfoResult {
String title;
String source;
String total;
String info;
int currentPage;
int totalPage;
List<Data> data;
List<HomeEntityData> recommend;
List<HomeEntityData> relevant;
InfoResult(
{this.title,
this.source,
this.total,
this.info,
this.currentPage,
this.totalPage,
this.data,
this.recommend,
this.relevant});
InfoResult.fromJson(Map<String, dynamic> json) {
title = json['title'];
source = json['source'];
total = json['total'];
info = json['info'];
currentPage = json['current_page'];
totalPage = json['total_page'];
if (json['data'] != null) {
data = new List<Data>();
json['data'].forEach((v) {
data.add(new Data.fromJson(v));
});
}
if (json['recommend'] != null) {
recommend = new List<HomeEntityData>();
json['recommend'].forEach((v) {
recommend.add(new HomeEntityData.fromJson(v));
});
}
if (json['relevant'] != null) {
relevant = new List<HomeEntityData>();
json['relevant'].forEach((v) {
relevant.add(new HomeEntityData.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['title'] = this.title;
data['source'] = this.source;
data['total'] = this.total;
data['info'] = this.info;
data['current_page'] = this.currentPage;
data['total_page'] = this.totalPage;
if (this.data != null) {
data['data'] = this.data.map((v) => v.toJson()).toList();
}
if (this.recommend != null) {
data['recommend'] = this.recommend.map((v) => v.toJson()).toList();
}
if (this.relevant != null) {
data['relevant'] = this.relevant.map((v) => v.toJson()).toList();
}
return data;
}
}
class Data {
String title;
String src;
Data({this.title, this.src});
Data.fromJson(Map<String, dynamic> json) {
title = json['title'];
src = json['src'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['title'] = this.title;
data['src'] = this.src;
return data;
}
}

View File

@@ -0,0 +1,51 @@
import 'HomeEntity.dart';
class LikeEntity extends HomeEntityData {
int id;
String preview;
String source;
String title;
String totals;
String user;
LikeEntity({this.id, this.preview, this.source, this.title, this.totals, this.user});
LikeEntity.fromJson(Map<String, dynamic> json) {
id = json['id'];
preview = json['preview'];
source = json['source'];
title = json['title'];
totals = json['totals'];
user = json['user'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['preview'] = this.preview;
data['source'] = this.source;
data['title'] = this.title;
data['totals'] = this.totals;
data['user'] = this.user;
return data;
}
}
class SingleGraphEntity {
int id;
String src;
SingleGraphEntity({this.id, this.src});
SingleGraphEntity.fromJson(Map<String, dynamic> json) {
id = json['id'];
src = json['src'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['src'] = this.src;
return data;
}
}

View File

@@ -0,0 +1,34 @@
class LoginEntity {
int code;
String error;
String username;
String createdAt;
String objectId;
String userType;
String userWeiXin;
LoginEntity({this.code, this.error, this.username, this.createdAt, this.objectId, this.userType, this.userWeiXin});
LoginEntity.fromJson(Map<String, dynamic> json) {
code = json['code'];
error = json['error'];
username = json['username'];
createdAt = json['createdAt'];
objectId = json['objectId'];
userType = json['userType'];
userWeiXin = json['userWeiXin'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['error'] = this.error;
data['username'] = this.username;
data['createdAt'] = this.createdAt;
data['objectId'] = this.objectId;
data['userType'] = this.userType;
data['userWeiXin'] = this.userWeiXin;
return data;
}
}

View File

@@ -0,0 +1,50 @@
class MechanismEntity {
int status;
String msg;
List<MechanismResult> result;
MechanismEntity({this.status, this.msg, this.result});
MechanismEntity.fromJson(Map<String, dynamic> json) {
status = json['status'];
msg = json['msg'];
if (json['result'] != null) {
result = new List<MechanismResult>();
json['result'].forEach((v) {
result.add(new MechanismResult.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
data['msg'] = this.msg;
if (this.result != null) {
data['result'] = this.result.map((v) => v.toJson()).toList();
}
return data;
}
}
class MechanismResult {
int id;
String title;
String quantity;
MechanismResult({this.id, this.title, this.quantity});
MechanismResult.fromJson(Map<String, dynamic> json) {
id = json['id'];
title = json['title'];
quantity = json['quantity'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['title'] = this.title;
data['quantity'] = this.quantity;
return data;
}
}

View File

@@ -0,0 +1,84 @@
import 'HomeEntity.dart';
class ModelEntity {
int status;
String msg;
ModelResult result;
ModelEntity({this.status, this.msg, this.result});
ModelEntity.fromJson(Map<String, dynamic> json) {
status = json['status'];
msg = json['msg'];
result =
json['result'] != null ? new ModelResult.fromJson(json['result']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
data['msg'] = this.msg;
if (this.result != null) {
data['result'] = this.result.toJson();
}
return data;
}
}
class ModelResult {
List<Res> hotModels;
List<Res> newest;
ModelResult({this.hotModels, this.newest});
ModelResult.fromJson(Map<String, dynamic> json) {
if (json['hot_models'] != null) {
hotModels = new List<Res>();
json['hot_models'].forEach((v) {
hotModels.add(new Res.fromJson(v));
});
}
if (json['newest'] != null) {
newest = new List<Res>();
json['newest'].forEach((v) {
newest.add(new Res.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.hotModels != null) {
data['hot_models'] = this.hotModels.map((v) => v.toJson()).toList();
}
if (this.newest != null) {
data['newest'] = this.newest.map((v) => v.toJson()).toList();
}
return data;
}
}
class HotModels {
int id;
String title;
String total;
String preview;
HotModels({this.id, this.title, this.total, this.preview});
HotModels.fromJson(Map<String, dynamic> json) {
id = json['id'];
title = json['title'];
total = json['total'];
preview = json['preview'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['title'] = this.title;
data['total'] = this.total;
data['preview'] = this.preview;
return data;
}
}

View File

@@ -0,0 +1,102 @@
import 'HomeEntity.dart';
class ModelInfoEntity {
int status;
String msg;
ModelInfoResult result;
ModelInfoEntity({this.status, this.msg, this.result});
ModelInfoEntity.fromJson(Map<String, dynamic> json) {
status = json['status'];
msg = json['msg'];
result =
json['result'] != null ? new ModelInfoResult.fromJson(json['result']) : null;
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
data['msg'] = this.msg;
if (this.result != null) {
data['result'] = this.result.toJson();
}
return data;
}
}
class ModelInfoResult {
int currentPage;
int totalPage;
ModelInfo modelInfo;
List<HomeEntityData> data;
List<Res> similar;
ModelInfoResult(
{this.currentPage,
this.totalPage,
this.modelInfo,
this.data,
this.similar});
ModelInfoResult.fromJson(Map<String, dynamic> json) {
currentPage = json['current_page'];
totalPage = json['total_page'];
modelInfo = json['model_info'] != null
? new ModelInfo.fromJson(json['model_info'])
: null;
if (json['data'] != null) {
data = new List<HomeEntityData>();
json['data'].forEach((v) {
data.add(new HomeEntityData.fromJson(v));
});
}
if (json['similar'] != null) {
similar = new List<Res>();
json['similar'].forEach((v) {
similar.add(new Res.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['current_page'] = this.currentPage;
data['total_page'] = this.totalPage;
if (this.modelInfo != null) {
data['model_info'] = this.modelInfo.toJson();
}
if (this.data != null) {
data['data'] = this.data.map((v) => v.toJson()).toList();
}
if (this.similar != null) {
data['similar'] = this.similar.map((v) => v.toJson()).toList();
}
return data;
}
}
class ModelInfo {
String portrait;
String name;
String explain;
String total;
ModelInfo({this.portrait, this.name, this.explain, this.total});
ModelInfo.fromJson(Map<String, dynamic> json) {
portrait = json['portrait'];
name = json['name'];
explain = json['explain'];
total = json['total'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['portrait'] = this.portrait;
data['name'] = this.name;
data['explain'] = this.explain;
data['total'] = this.total;
return data;
}
}

View File

@@ -0,0 +1,38 @@
class RegisterEntity {
int _code;
String _error;
String _createdAt;
String _objectId;
RegisterEntity({int code, String error, String createdAt, String objectId}) {
this._code = code;
this._error = error;
this._createdAt = createdAt;
this._objectId = objectId;
}
int get code => _code;
set code(int code) => _code = code;
String get error => _error;
set error(String error) => _error = error;
String get createdAt => _createdAt;
set createdAt(String createdAt) => _createdAt = createdAt;
String get objectId => _objectId;
set objectId(String objectId) => _objectId = objectId;
RegisterEntity.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_error = json['error'];
_createdAt = json['createdAt'];
_objectId = json['objectId'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['error'] = this._error;
data['createdAt'] = this._createdAt;
data['objectId'] = this._objectId;
return data;
}
}

View File

@@ -0,0 +1,28 @@
import 'AgentClassListEntity.dart';
class SearchEntity {
int status;
List<ItemList> data;
SearchEntity({this.status, this.data});
SearchEntity.fromJson(Map<String, dynamic> json) {
status = json['status'];
if (json['data'] != null) {
data = new List<ItemList>();
json['data'].forEach((v) {
data.add(new ItemList.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
if (this.data != null) {
data['data'] = this.data.map((v) => v.toJson()).toList();
}
return data;
}
}

View File

@@ -0,0 +1,40 @@
class UpdateVersionEntity {
String createdAt;
String downUrl;
String objectId;
List<String> updateMsg;
String updatedAt;
String version;
int versionCode;
UpdateVersionEntity(
{this.createdAt,
this.downUrl,
this.objectId,
this.updateMsg,
this.updatedAt,
this.version,
this.versionCode});
UpdateVersionEntity.fromJson(Map<String, dynamic> json) {
createdAt = json['createdAt'];
downUrl = json['downUrl'];
objectId = json['objectId'];
updateMsg = json['updateMsg'].cast<String>();
updatedAt = json['updatedAt'];
version = json['version'];
versionCode = json['versionCode'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['createdAt'] = this.createdAt;
data['downUrl'] = this.downUrl;
data['objectId'] = this.objectId;
data['updateMsg'] = this.updateMsg;
data['updatedAt'] = this.updatedAt;
data['version'] = this.version;
data['versionCode'] = this.versionCode;
return data;
}
}

View File

@@ -0,0 +1,418 @@
class VideoListEntity {
int _result;
String _llsid;
String _webPageArea;
List<Feeds> _feeds;
Null _hostName;
String _pcursor;
String _sTypename;
VideoListEntity(
{int result,
String llsid,
String webPageArea,
List<Feeds> feeds,
Null hostName,
String pcursor,
String sTypename}) {
this._result = result;
this._llsid = llsid;
this._webPageArea = webPageArea;
this._feeds = feeds;
this._hostName = hostName;
this._pcursor = pcursor;
this._sTypename = sTypename;
}
int get result => _result;
set result(int result) => _result = result;
String get llsid => _llsid;
set llsid(String llsid) => _llsid = llsid;
String get webPageArea => _webPageArea;
set webPageArea(String webPageArea) => _webPageArea = webPageArea;
List<Feeds> get feeds => _feeds;
set feeds(List<Feeds> feeds) => _feeds = feeds;
Null get hostName => _hostName;
set hostName(Null hostName) => _hostName = hostName;
String get pcursor => _pcursor;
set pcursor(String pcursor) => _pcursor = pcursor;
String get sTypename => _sTypename;
set sTypename(String sTypename) => _sTypename = sTypename;
VideoListEntity.fromJson(Map<String, dynamic> json) {
_result = json['result'];
_llsid = json['llsid'];
_webPageArea = json['webPageArea'];
if (json['feeds'] != null) {
_feeds = new List<Feeds>();
json['feeds'].forEach((v) {
_feeds.add(new Feeds.fromJson(v));
});
}
_hostName = json['hostName'];
_pcursor = json['pcursor'];
_sTypename = json['__typename'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['result'] = this._result;
data['llsid'] = this._llsid;
data['webPageArea'] = this._webPageArea;
if (this._feeds != null) {
data['feeds'] = this._feeds.map((v) => v.toJson()).toList();
}
data['hostName'] = this._hostName;
data['pcursor'] = this._pcursor;
data['__typename'] = this._sTypename;
return data;
}
}
class Feeds {
int _type;
Author _author;
List<Tag> _tag;
Photo _photo;
int _canAddComment;
String _currentPcursor;
String _llsid;
int _status;
String _sTypename;
Feeds(
{int type,
Author author,
List<Tag> tag,
Photo photo,
int canAddComment,
String currentPcursor,
String llsid,
int status,
String sTypename}) {
this._type = type;
this._author = author;
this._tag = tag;
this._photo = photo;
this._canAddComment = canAddComment;
this._currentPcursor = currentPcursor;
this._llsid = llsid;
this._status = status;
this._sTypename = sTypename;
}
int get type => _type;
set type(int type) => _type = type;
Author get author => _author;
set author(Author author) => _author = author;
List<Tag> get tag => _tag;
set tag(List<Tag> tag) => _tag = tag;
Photo get photo => _photo;
set photo(Photo photo) => _photo = photo;
int get canAddComment => _canAddComment;
set canAddComment(int canAddComment) => _canAddComment = canAddComment;
String get currentPcursor => _currentPcursor;
set currentPcursor(String currentPcursor) => _currentPcursor = currentPcursor;
String get llsid => _llsid;
set llsid(String llsid) => _llsid = llsid;
int get status => _status;
set status(int status) => _status = status;
String get sTypename => _sTypename;
set sTypename(String sTypename) => _sTypename = sTypename;
Feeds.fromJson(Map<String, dynamic> json) {
_type = json['type'];
_author =
json['author'] != null ? new Author.fromJson(json['author']) : null;
if (json['tag'] != null) {
_tag = new List<Tag>();
json['tag'].forEach((v) {
_tag.add(new Tag.fromJson(v));
});
}
_photo = json['photo'] != null ? new Photo.fromJson(json['photo']) : null;
_canAddComment = json['canAddComment'];
_currentPcursor = json['currentPcursor'];
_llsid = json['llsid'];
_status = json['status'];
_sTypename = json['__typename'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['type'] = this._type;
if (this._author != null) {
data['author'] = this._author.toJson();
}
if (this._tag != null) {
data['tag'] = this._tag.map((v) => v.toJson()).toList();
}
if (this._photo != null) {
data['photo'] = this._photo.toJson();
}
data['canAddComment'] = this._canAddComment;
data['currentPcursor'] = this._currentPcursor;
data['llsid'] = this._llsid;
data['status'] = this._status;
data['__typename'] = this._sTypename;
return data;
}
}
class Author {
String _id;
String _name;
bool _following;
String _headerUrl;
Null _headerUrls;
String _sTypename;
Author(
{String id,
String name,
bool following,
String headerUrl,
Null headerUrls,
String sTypename}) {
this._id = id;
this._name = name;
this._following = following;
this._headerUrl = headerUrl;
this._headerUrls = headerUrls;
this._sTypename = sTypename;
}
String get id => _id;
set id(String id) => _id = id;
String get name => _name;
set name(String name) => _name = name;
bool get following => _following;
set following(bool following) => _following = following;
String get headerUrl => _headerUrl;
set headerUrl(String headerUrl) => _headerUrl = headerUrl;
Null get headerUrls => _headerUrls;
set headerUrls(Null headerUrls) => _headerUrls = headerUrls;
String get sTypename => _sTypename;
set sTypename(String sTypename) => _sTypename = sTypename;
Author.fromJson(Map<String, dynamic> json) {
_id = json['id'];
_name = json['name'];
_following = json['following'];
_headerUrl = json['headerUrl'];
_headerUrls = json['headerUrls'];
_sTypename = json['__typename'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this._id;
data['name'] = this._name;
data['following'] = this._following;
data['headerUrl'] = this._headerUrl;
data['headerUrls'] = this._headerUrls;
data['__typename'] = this._sTypename;
return data;
}
}
class Tag {
int _type;
String _name;
String _sTypename;
Tag({int type, String name, String sTypename}) {
this._type = type;
this._name = name;
this._sTypename = sTypename;
}
int get type => _type;
set type(int type) => _type = type;
String get name => _name;
set name(String name) => _name = name;
String get sTypename => _sTypename;
set sTypename(String sTypename) => _sTypename = sTypename;
Tag.fromJson(Map<String, dynamic> json) {
_type = json['type'];
_name = json['name'];
_sTypename = json['__typename'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['type'] = this._type;
data['name'] = this._name;
data['__typename'] = this._sTypename;
return data;
}
}
class Photo {
String _id;
int _duration;
String _caption;
String _likeCount;
int _realLikeCount;
String _coverUrl;
Null _coverUrls;
List<PhotoUrls> _photoUrls;
String _photoUrl;
bool _liked;
int _timestamp;
String _expTag;
String _animatedCoverUrl;
int _stereoType;
double _videoRatio;
String _sTypename;
Photo(
{String id,
int duration,
String caption,
String likeCount,
int realLikeCount,
String coverUrl,
Null coverUrls,
List<PhotoUrls> photoUrls,
String photoUrl,
bool liked,
int timestamp,
String expTag,
String animatedCoverUrl,
int stereoType,
double videoRatio,
String sTypename}) {
this._id = id;
this._duration = duration;
this._caption = caption;
this._likeCount = likeCount;
this._realLikeCount = realLikeCount;
this._coverUrl = coverUrl;
this._coverUrls = coverUrls;
this._photoUrls = photoUrls;
this._photoUrl = photoUrl;
this._liked = liked;
this._timestamp = timestamp;
this._expTag = expTag;
this._animatedCoverUrl = animatedCoverUrl;
this._stereoType = stereoType;
this._videoRatio = videoRatio;
this._sTypename = sTypename;
}
String get id => _id;
set id(String id) => _id = id;
int get duration => _duration;
set duration(int duration) => _duration = duration;
String get caption => _caption;
set caption(String caption) => _caption = caption;
String get likeCount => _likeCount;
set likeCount(String likeCount) => _likeCount = likeCount;
int get realLikeCount => _realLikeCount;
set realLikeCount(int realLikeCount) => _realLikeCount = realLikeCount;
String get coverUrl => _coverUrl;
set coverUrl(String coverUrl) => _coverUrl = coverUrl;
Null get coverUrls => _coverUrls;
set coverUrls(Null coverUrls) => _coverUrls = coverUrls;
List<PhotoUrls> get photoUrls => _photoUrls;
set photoUrls(List<PhotoUrls> photoUrls) => _photoUrls = photoUrls;
String get photoUrl => _photoUrl;
set photoUrl(String photoUrl) => _photoUrl = photoUrl;
bool get liked => _liked;
set liked(bool liked) => _liked = liked;
int get timestamp => _timestamp;
set timestamp(int timestamp) => _timestamp = timestamp;
String get expTag => _expTag;
set expTag(String expTag) => _expTag = expTag;
String get animatedCoverUrl => _animatedCoverUrl;
set animatedCoverUrl(String animatedCoverUrl) =>
_animatedCoverUrl = animatedCoverUrl;
int get stereoType => _stereoType;
set stereoType(int stereoType) => _stereoType = stereoType;
double get videoRatio => _videoRatio;
set videoRatio(double videoRatio) => _videoRatio = videoRatio;
String get sTypename => _sTypename;
set sTypename(String sTypename) => _sTypename = sTypename;
Photo.fromJson(Map<String, dynamic> json) {
_id = json['id'];
_duration = json['duration'];
_caption = json['caption'];
_likeCount = json['likeCount'];
_realLikeCount = json['realLikeCount'];
_coverUrl = json['coverUrl'];
_coverUrls = json['coverUrls'];
if (json['photoUrls'] != null) {
_photoUrls = new List<PhotoUrls>();
json['photoUrls'].forEach((v) {
_photoUrls.add(new PhotoUrls.fromJson(v));
});
}
_photoUrl = json['photoUrl'];
_liked = json['liked'];
_timestamp = json['timestamp'];
_expTag = json['expTag'];
_animatedCoverUrl = json['animatedCoverUrl'];
_stereoType = json['stereoType'];
_videoRatio = json['videoRatio'];
_sTypename = json['__typename'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this._id;
data['duration'] = this._duration;
data['caption'] = this._caption;
data['likeCount'] = this._likeCount;
data['realLikeCount'] = this._realLikeCount;
data['coverUrl'] = this._coverUrl;
data['coverUrls'] = this._coverUrls;
if (this._photoUrls != null) {
data['photoUrls'] = this._photoUrls.map((v) => v.toJson()).toList();
}
data['photoUrl'] = this._photoUrl;
data['liked'] = this._liked;
data['timestamp'] = this._timestamp;
data['expTag'] = this._expTag;
data['animatedCoverUrl'] = this._animatedCoverUrl;
data['stereoType'] = this._stereoType;
data['videoRatio'] = this._videoRatio;
data['__typename'] = this._sTypename;
return data;
}
}
class PhotoUrls {
String _cdn;
String _url;
String _sTypename;
PhotoUrls({String cdn, String url, String sTypename}) {
this._cdn = cdn;
this._url = url;
this._sTypename = sTypename;
}
String get cdn => _cdn;
set cdn(String cdn) => _cdn = cdn;
String get url => _url;
set url(String url) => _url = url;
String get sTypename => _sTypename;
set sTypename(String sTypename) => _sTypename = sTypename;
PhotoUrls.fromJson(Map<String, dynamic> json) {
_cdn = json['cdn'];
_url = json['url'];
_sTypename = json['__typename'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['cdn'] = this._cdn;
data['url'] = this._url;
data['__typename'] = this._sTypename;
return data;
}
}

View File

@@ -0,0 +1,19 @@
library entity;
export 'HomeEntity.dart';
export 'InfoEntity.dart';
export 'ClassListEntity.dart';
export 'ClassEntity.dart';
export 'MechanismEntity.dart';
export 'ModelEntity.dart';
export 'LikeEntity.dart';
export 'ModelInfoEntity.dart';
export 'AgentInfoEntity.dart';
export 'AgentClassListEntity.dart';
export 'UpdateVersionEntity.dart';
export 'SearchEntity.dart';
export 'VideoListEntity.dart';
export 'LoginEntity.dart';
export 'RegisterEntity.dart';
export 'FreeUseEntity.dart';
export 'orderStatusEntity.dart';

View File

@@ -0,0 +1,110 @@
class orderStatusEntity {
int _code;
String _error;
List<Arr> _arr;
orderStatusEntity({int code, String error, List<Arr> arr}) {
this._code = code;
this._error = error;
this._arr = arr;
}
int get code => _code;
set code(int code) => _code = code;
String get error => _error;
set error(String error) => _error = error;
List<Arr> get arr => _arr;
set arr(List<Arr> arr) => _arr = arr;
orderStatusEntity.fromJson(Map<String, dynamic> json) {
_code = json['code'];
_error = json['error'];
if (json['arr'] != null) {
_arr = new List<Arr>();
json['arr'].forEach((v) {
_arr.add(new Arr.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this._code;
data['error'] = this._error;
if (this._arr != null) {
data['arr'] = this._arr.map((v) => v.toJson()).toList();
}
return data;
}
}
class Arr {
String _activateStatus;
String _createdAt;
String _objectId;
String _orderNumber;
String _superiorWeixin;
String _updatedAt;
String _userObjectId;
String _vipLevel;
Arr(
{String activateStatus,
String createdAt,
String objectId,
String orderNumber,
String superiorWeixin,
String updatedAt,
String userObjectId,
String vipLevel}) {
this._activateStatus = activateStatus;
this._createdAt = createdAt;
this._objectId = objectId;
this._orderNumber = orderNumber;
this._superiorWeixin = superiorWeixin;
this._updatedAt = updatedAt;
this._userObjectId = userObjectId;
this._vipLevel = vipLevel;
}
String get activateStatus => _activateStatus;
set activateStatus(String activateStatus) => _activateStatus = activateStatus;
String get createdAt => _createdAt;
set createdAt(String createdAt) => _createdAt = createdAt;
String get objectId => _objectId;
set objectId(String objectId) => _objectId = objectId;
String get orderNumber => _orderNumber;
set orderNumber(String orderNumber) => _orderNumber = orderNumber;
String get superiorWeixin => _superiorWeixin;
set superiorWeixin(String superiorWeixin) => _superiorWeixin = superiorWeixin;
String get updatedAt => _updatedAt;
set updatedAt(String updatedAt) => _updatedAt = updatedAt;
String get userObjectId => _userObjectId;
set userObjectId(String userObjectId) => _userObjectId = userObjectId;
String get vipLevel => _vipLevel;
set vipLevel(String vipLevel) => _vipLevel = vipLevel;
Arr.fromJson(Map<String, dynamic> json) {
_activateStatus = json['activateStatus'];
_createdAt = json['createdAt'];
_objectId = json['objectId'];
_orderNumber = json['orderNumber'];
_superiorWeixin = json['superiorWeixin'];
_updatedAt = json['updatedAt'];
_userObjectId = json['userObjectId'];
_vipLevel = json['vipLevel'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['activateStatus'] = this._activateStatus;
data['createdAt'] = this._createdAt;
data['objectId'] = this._objectId;
data['orderNumber'] = this._orderNumber;
data['superiorWeixin'] = this._superiorWeixin;
data['updatedAt'] = this._updatedAt;
data['userObjectId'] = this._userObjectId;
data['vipLevel'] = this._vipLevel;
return data;
}
}