Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -6,8 +6,8 @@ class DynMentionData {
DynMentionData({this.groups});
factory DynMentionData.fromJson(Map<String, dynamic> json) => DynMentionData(
groups: (json['groups'] as List<dynamic>?)
?.map((e) => MentionGroup.fromJson(e as Map<String, dynamic>))
.toList(),
);
groups: (json['groups'] as List<dynamic>?)
?.map((e) => MentionGroup.fromJson(e as Map<String, dynamic>))
.toList(),
);
}

View File

@@ -8,10 +8,10 @@ class MentionGroup {
MentionGroup({this.groupName, this.groupType, this.items});
factory MentionGroup.fromJson(Map<String, dynamic> json) => MentionGroup(
groupName: json['group_name'] as String?,
groupType: json['group_type'] as int?,
items: (json['items'] as List<dynamic>?)
?.map((e) => MentionItem.fromJson(e as Map<String, dynamic>))
.toList(),
);
groupName: json['group_name'] as String?,
groupType: json['group_type'] as int?,
items: (json['items'] as List<dynamic>?)
?.map((e) => MentionItem.fromJson(e as Map<String, dynamic>))
.toList(),
);
}

View File

@@ -17,12 +17,12 @@ class MentionItem with MultiSelectData {
});
factory MentionItem.fromJson(Map<String, dynamic> json) => MentionItem(
face: json['face'] as String?,
fans: json['fans'] as int?,
name: json['name'] as String?,
officialVerifyType: json['official_verify_type'] as int?,
uid: json['uid'] as String?,
);
face: json['face'] as String?,
fans: json['fans'] as int?,
name: json['name'] as String?,
officialVerifyType: json['official_verify_type'] as int?,
uid: json['uid'] as String?,
);
@override
bool operator ==(Object other) {