|
|
@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
import 'package:akuCommunity/model/common/img_model.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class CommentMessageModel {
|
|
|
|
class CommentMessageModel {
|
|
|
|
int id;
|
|
|
|
int id;
|
|
|
|
int gambitThemeId;
|
|
|
|
int gambitThemeId;
|
|
|
@ -8,7 +10,8 @@ class CommentMessageModel {
|
|
|
|
int sendStatus;
|
|
|
|
int sendStatus;
|
|
|
|
String createName;
|
|
|
|
String createName;
|
|
|
|
String createDate;
|
|
|
|
String createDate;
|
|
|
|
List<ImgUrls> imgUrls;
|
|
|
|
List<ImgModel> imgUrls;
|
|
|
|
|
|
|
|
List<ImgModel> headSculpture;
|
|
|
|
|
|
|
|
|
|
|
|
CommentMessageModel(
|
|
|
|
CommentMessageModel(
|
|
|
|
{this.id,
|
|
|
|
{this.id,
|
|
|
@ -20,7 +23,8 @@ class CommentMessageModel {
|
|
|
|
this.sendStatus,
|
|
|
|
this.sendStatus,
|
|
|
|
this.createName,
|
|
|
|
this.createName,
|
|
|
|
this.createDate,
|
|
|
|
this.createDate,
|
|
|
|
this.imgUrls});
|
|
|
|
this.imgUrls,
|
|
|
|
|
|
|
|
this.headSculpture});
|
|
|
|
|
|
|
|
|
|
|
|
CommentMessageModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
CommentMessageModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
id = json['id'];
|
|
|
|
id = json['id'];
|
|
|
@ -33,9 +37,15 @@ class CommentMessageModel {
|
|
|
|
createName = json['createName'];
|
|
|
|
createName = json['createName'];
|
|
|
|
createDate = json['createDate'];
|
|
|
|
createDate = json['createDate'];
|
|
|
|
if (json['imgUrls'] != null) {
|
|
|
|
if (json['imgUrls'] != null) {
|
|
|
|
imgUrls = new List<ImgUrls>();
|
|
|
|
imgUrls = [];
|
|
|
|
json['imgUrls'].forEach((v) {
|
|
|
|
json['imgUrls'].forEach((v) {
|
|
|
|
imgUrls.add(new ImgUrls.fromJson(v));
|
|
|
|
imgUrls.add(new ImgModel.fromJson(v));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (json['headSculpture'] != null) {
|
|
|
|
|
|
|
|
headSculpture = [];
|
|
|
|
|
|
|
|
json['headSculpture'].forEach((v) {
|
|
|
|
|
|
|
|
headSculpture.add(new ImgModel.fromJson(v));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -57,31 +67,3 @@ class CommentMessageModel {
|
|
|
|
return data;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class ImgUrls {
|
|
|
|
|
|
|
|
String url;
|
|
|
|
|
|
|
|
String size;
|
|
|
|
|
|
|
|
int longs;
|
|
|
|
|
|
|
|
int paragraph;
|
|
|
|
|
|
|
|
int sort;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ImgUrls({this.url, this.size, this.longs, this.paragraph, this.sort});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ImgUrls.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
|
|
|
url = json['url'];
|
|
|
|
|
|
|
|
size = json['size'];
|
|
|
|
|
|
|
|
longs = json['longs'];
|
|
|
|
|
|
|
|
paragraph = json['paragraph'];
|
|
|
|
|
|
|
|
sort = json['sort'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
|
|
|
data['url'] = this.url;
|
|
|
|
|
|
|
|
data['size'] = this.size;
|
|
|
|
|
|
|
|
data['longs'] = this.longs;
|
|
|
|
|
|
|
|
data['paragraph'] = this.paragraph;
|
|
|
|
|
|
|
|
data['sort'] = this.sort;
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|