mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -1,53 +1,20 @@
|
||||
class MsgAtContent {
|
||||
String? type;
|
||||
String? business;
|
||||
int? businessId;
|
||||
String? title;
|
||||
String? image;
|
||||
String? uri;
|
||||
int? subjectId;
|
||||
int? rootId;
|
||||
int? targetId;
|
||||
int? sourceId;
|
||||
String? sourceContent;
|
||||
String? nativeUri;
|
||||
List<dynamic>? atDetails;
|
||||
List<dynamic>? topicDetails;
|
||||
bool? hideReplyButton;
|
||||
|
||||
MsgAtContent({
|
||||
this.type,
|
||||
this.business,
|
||||
this.businessId,
|
||||
this.title,
|
||||
this.image,
|
||||
this.uri,
|
||||
this.subjectId,
|
||||
this.rootId,
|
||||
this.targetId,
|
||||
this.sourceId,
|
||||
this.sourceContent,
|
||||
this.nativeUri,
|
||||
this.atDetails,
|
||||
this.topicDetails,
|
||||
this.hideReplyButton,
|
||||
});
|
||||
|
||||
factory MsgAtContent.fromJson(Map<String, dynamic> json) => MsgAtContent(
|
||||
type: json['type'] as String?,
|
||||
business: json['business'] as String?,
|
||||
businessId: json['business_id'] as int?,
|
||||
title: json['title'] as String?,
|
||||
image: json['image'] as String?,
|
||||
uri: json['uri'] as String?,
|
||||
subjectId: json['subject_id'] as int?,
|
||||
rootId: json['root_id'] as int?,
|
||||
targetId: json['target_id'] as int?,
|
||||
sourceId: json['source_id'] as int?,
|
||||
sourceContent: json['source_content'] as String?,
|
||||
nativeUri: json['native_uri'] as String?,
|
||||
atDetails: json['at_details'] as List<dynamic>?,
|
||||
topicDetails: json['topic_details'] as List<dynamic>?,
|
||||
hideReplyButton: json['hide_reply_button'] as bool?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,26 +1,17 @@
|
||||
class User {
|
||||
int? mid;
|
||||
int? fans;
|
||||
String? nickname;
|
||||
String? avatar;
|
||||
String? midLink;
|
||||
bool? follow;
|
||||
|
||||
User({
|
||||
this.mid,
|
||||
this.fans,
|
||||
this.nickname,
|
||||
this.avatar,
|
||||
this.midLink,
|
||||
this.follow,
|
||||
});
|
||||
|
||||
factory User.fromJson(Map<String, dynamic> json) => User(
|
||||
mid: json['mid'] as int?,
|
||||
fans: json['fans'] as int?,
|
||||
nickname: json['nickname'] as String?,
|
||||
avatar: json['avatar'] as String?,
|
||||
midLink: json['mid_link'] as String?,
|
||||
follow: json['follow'] as bool?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user