admin
2022-05-07 4c7cde7ae5ed57335405459e47de4bbd2726c4ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/// 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;
  }
}