|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
import 'package:akuCommunity/model/common/img_model.dart';
|
|
|
|
|
|
|
|
|
|
class CommentMessageModel {
|
|
|
|
|
int id;
|
|
|
|
|
int gambitThemeId;
|
|
|
|
@ -8,7 +10,8 @@ class CommentMessageModel {
|
|
|
|
|
int sendStatus;
|
|
|
|
|
String createName;
|
|
|
|
|
String createDate;
|
|
|
|
|
List<ImgUrls> imgUrls;
|
|
|
|
|
List<ImgModel> imgUrls;
|
|
|
|
|
List<ImgModel> headSculpture;
|
|
|
|
|
|
|
|
|
|
CommentMessageModel(
|
|
|
|
|
{this.id,
|
|
|
|
@ -20,7 +23,8 @@ class CommentMessageModel {
|
|
|
|
|
this.sendStatus,
|
|
|
|
|
this.createName,
|
|
|
|
|
this.createDate,
|
|
|
|
|
this.imgUrls});
|
|
|
|
|
this.imgUrls,
|
|
|
|
|
this.headSculpture});
|
|
|
|
|
|
|
|
|
|
CommentMessageModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
id = json['id'];
|
|
|
|
@ -33,9 +37,15 @@ class CommentMessageModel {
|
|
|
|
|
createName = json['createName'];
|
|
|
|
|
createDate = json['createDate'];
|
|
|
|
|
if (json['imgUrls'] != null) {
|
|
|
|
|
imgUrls = new List<ImgUrls>();
|
|
|
|
|
imgUrls = [];
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|