mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 16:46:22 +08:00
18 lines
527 B
Dart
18 lines
527 B
Dart
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});
|
|
|
|
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(),
|
|
);
|
|
}
|