Files
PiliPlus/lib/models/dynamics/dyn_topic_feed/item.dart
bggRGjQaUbCoE 11a0f2faca feat: dyn topic
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-05-07 18:09:14 +08:00

17 lines
521 B
Dart

import 'package:PiliPlus/models/dynamics/result.dart';
class TopicCardItem {
DynamicItemModel? dynamicCardItem;
String? topicType;
TopicCardItem({this.dynamicCardItem, this.topicType});
factory TopicCardItem.fromJson(Map<String, dynamic> json) => TopicCardItem(
dynamicCardItem: json['dynamic_card_item'] == null
? null
: DynamicItemModel.fromJson(
json['dynamic_card_item'] as Map<String, dynamic>),
topicType: json['topic_type'] as String?,
);
}