You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
2.8 KiB
106 lines
2.8 KiB
/// id : "1483062749750624256" |
|
/// createTime : "2022-01-17 21:04:48" |
|
/// createUser : "0" |
|
/// updateTime : "2022-01-17 21:04:48" |
|
/// updateUser : "0" |
|
/// mid : "1478548672881885184" |
|
/// title : "粉丝关注" |
|
/// content : "哈哈哈关注了你!" |
|
/// typed : 4 |
|
/// relational : "{\"businessId\":1483062749356359680,\"mid\":1379254113602109440,\"avatar\":\"https://pos.upload.gznl.top/admin/2021/08/1f8d55ed-85d2-42a2-b155-6737a66226e8.jpg\",\"typed\":\"MEMBER\",\"nickname\":\"哈哈哈\",\"action\":\"FOLLOW\",\"receiveMid\":1478548672881885184}" |
|
/// state : 0 |
|
/// isDelete : 0 |
|
/// followed : false |
|
|
|
class Message { |
|
Message({ |
|
String id, |
|
String createTime, |
|
String createUser, |
|
String updateTime, |
|
String updateUser, |
|
String mid, |
|
String title, |
|
String content, |
|
int typed, |
|
String relational, |
|
int state, |
|
int isDelete, |
|
bool followed,}){ |
|
_id = id; |
|
_createTime = createTime; |
|
_createUser = createUser; |
|
_updateTime = updateTime; |
|
_updateUser = updateUser; |
|
_mid = mid; |
|
_title = title; |
|
_content = content; |
|
_typed = typed; |
|
_relational = relational; |
|
_state = state; |
|
_isDelete = isDelete; |
|
_followed = followed; |
|
} |
|
|
|
Message.fromJson(dynamic json) { |
|
_id = json['id']; |
|
_createTime = json['createTime']; |
|
_createUser = json['createUser']; |
|
_updateTime = json['updateTime']; |
|
_updateUser = json['updateUser']; |
|
_mid = json['mid']; |
|
_title = json['title']; |
|
_content = json['content']; |
|
_typed = json['typed']; |
|
_relational = json['relational']; |
|
_state = json['state']; |
|
_isDelete = json['isDelete']; |
|
_followed = json['followed']; |
|
} |
|
String _id; |
|
String _createTime; |
|
String _createUser; |
|
String _updateTime; |
|
String _updateUser; |
|
String _mid; |
|
String _title; |
|
String _content; |
|
int _typed; |
|
String _relational; |
|
int _state; |
|
int _isDelete; |
|
bool _followed; |
|
|
|
String get id => _id; |
|
String get createTime => _createTime; |
|
String get createUser => _createUser; |
|
String get updateTime => _updateTime; |
|
String get updateUser => _updateUser; |
|
String get mid => _mid; |
|
String get title => _title; |
|
String get content => _content; |
|
int get typed => _typed; |
|
String get relational => _relational; |
|
int get state => _state; |
|
int get isDelete => _isDelete; |
|
bool get followed => _followed; |
|
|
|
Map<String, dynamic> toJson() { |
|
final map = <String, dynamic>{}; |
|
map['id'] = _id; |
|
map['createTime'] = _createTime; |
|
map['createUser'] = _createUser; |
|
map['updateTime'] = _updateTime; |
|
map['updateUser'] = _updateUser; |
|
map['mid'] = _mid; |
|
map['title'] = _title; |
|
map['content'] = _content; |
|
map['typed'] = _typed; |
|
map['relational'] = _relational; |
|
map['state'] = _state; |
|
map['isDelete'] = _isDelete; |
|
map['followed'] = _followed; |
|
return map; |
|
} |
|
|
|
} |