/// id : "22384-extract-1650781076696"
|
/// type : {"icon":"","name":"余额提现"}
|
/// contentList : [{"title":"提现金额","content":"10元"},{"title":"提现状态","content":"提现失败"},{"title":"备注","content":"这是测试备注,测试备注,测试备注"}]
|
/// createTime : "2022.04.24 14:17"
|
|
class UserMsgModel {
|
UserMsgModel({
|
String? id,
|
Type? type,
|
List<ContentList>? contentList,
|
String? createTime,
|
}) {
|
_id = id;
|
_type = type;
|
_contentList = contentList;
|
_createTime = createTime;
|
}
|
|
UserMsgModel.fromJson(dynamic json) {
|
_id = json['id'];
|
_type = json['type'] != null ? Type.fromJson(json['type']) : null;
|
if (json['contentList'] != null) {
|
_contentList = [];
|
json['contentList'].forEach((v) {
|
_contentList?.add(ContentList.fromJson(v));
|
});
|
}
|
_createTime = json['createTime'];
|
}
|
|
String? _id;
|
Type? _type;
|
List<ContentList>? _contentList;
|
String? _createTime;
|
|
String? get id => _id;
|
|
Type? get type => _type;
|
|
List<ContentList>? get contentList => _contentList;
|
|
String? get createTime => _createTime;
|
|
Map<String, dynamic> toJson() {
|
final map = <String, dynamic>{};
|
map['id'] = _id;
|
if (_type != null) {
|
map['type'] = _type?.toJson();
|
}
|
if (_contentList != null) {
|
map['contentList'] = _contentList?.map((v) => v.toJson()).toList();
|
}
|
map['createTime'] = _createTime;
|
return map;
|
}
|
}
|
|
/// title : "提现金额"
|
/// content : "10元"
|
|
class ContentList {
|
ContentList({
|
String? title,
|
String? content,
|
}) {
|
_title = title;
|
_content = content;
|
}
|
|
ContentList.fromJson(dynamic json) {
|
_title = json['title'];
|
_content = json['content'];
|
}
|
|
String? _title;
|
String? _content;
|
|
String? get title => _title;
|
|
String? get content => _content;
|
|
Map<String, dynamic> toJson() {
|
final map = <String, dynamic>{};
|
map['title'] = _title;
|
map['content'] = _content;
|
return map;
|
}
|
}
|
|
/// icon : ""
|
/// name : "余额提现"
|
|
class Type {
|
Type({
|
String? icon,
|
String? name,
|
}) {
|
_icon = icon;
|
_name = name;
|
}
|
|
Type.fromJson(dynamic json) {
|
_icon = json['icon'];
|
_name = json['name'];
|
}
|
|
String? _icon;
|
String? _name;
|
|
String? get icon => _icon;
|
|
String? get name => _name;
|
|
Map<String, dynamic> toJson() {
|
final map = <String, dynamic>{};
|
map['icon'] = _icon;
|
map['name'] = _name;
|
return map;
|
}
|
}
|