mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-01 07:39:47 +08:00
@@ -2,14 +2,12 @@ import 'package:PiliPlus/models_new/dynamic/dyn_mention/item.dart';
|
||||
|
||||
class MentionGroup {
|
||||
String? groupName;
|
||||
int? groupType;
|
||||
List<MentionItem>? items;
|
||||
|
||||
MentionGroup({this.groupName, this.groupType, this.items});
|
||||
MentionGroup({this.groupName, 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(),
|
||||
|
||||
@@ -4,14 +4,12 @@ class MentionItem with MultiSelectData {
|
||||
final String? face;
|
||||
final int? fans;
|
||||
final String? name;
|
||||
final int? officialVerifyType;
|
||||
final String? uid;
|
||||
|
||||
MentionItem({
|
||||
this.face,
|
||||
this.fans,
|
||||
this.name,
|
||||
this.officialVerifyType,
|
||||
this.uid,
|
||||
});
|
||||
|
||||
@@ -19,7 +17,6 @@ class MentionItem with MultiSelectData {
|
||||
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?,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user