mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-10 03:00:13 +08:00
11
lib/models_new/dynamic/dyn_topic_feed/fold_card_item.dart
Normal file
11
lib/models_new/dynamic/dyn_topic_feed/fold_card_item.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
class FoldCardItem {
|
||||
int? foldCount;
|
||||
String? foldDesc;
|
||||
|
||||
FoldCardItem({this.foldCount, this.foldDesc});
|
||||
|
||||
factory FoldCardItem.fromJson(Map<String, dynamic> json) => FoldCardItem(
|
||||
foldCount: json['fold_count'] as int?,
|
||||
foldDesc: json['fold_desc'] as String?,
|
||||
);
|
||||
}
|
||||
@@ -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