mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-19 01:56:53 +08:00
@@ -1,10 +1,12 @@
|
||||
import 'package:PiliPlus/models/dynamics/result.dart';
|
||||
import 'package:PiliPlus/models_new/dynamic/dyn_topic_feed/fold_card_item.dart';
|
||||
|
||||
class TopicCardItem {
|
||||
FoldCardItem? foldCardItem;
|
||||
DynamicItemModel? dynamicCardItem;
|
||||
String? topicType;
|
||||
|
||||
TopicCardItem({this.dynamicCardItem, this.topicType});
|
||||
TopicCardItem({this.dynamicCardItem, this.foldCardItem, this.topicType});
|
||||
|
||||
factory TopicCardItem.fromJson(Map<String, dynamic> json) => TopicCardItem(
|
||||
dynamicCardItem: json['dynamic_card_item'] == null
|
||||
@@ -12,6 +14,11 @@ class TopicCardItem {
|
||||
: DynamicItemModel.fromJson(
|
||||
json['dynamic_card_item'] as Map<String, dynamic>,
|
||||
),
|
||||
foldCardItem: json['fold_card_item'] == null
|
||||
? null
|
||||
: FoldCardItem.fromJson(
|
||||
json['fold_card_item'] as Map<String, dynamic>,
|
||||
),
|
||||
topicType: json['topic_type'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user