Files
PiliPlus/lib/models/topic_pub_search/topic_item.dart
bggRGjQaUbCoE 3edac65ae8 opt pub panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-05-26 17:15:21 +08:00

31 lines
730 B
Dart

class TopicPubSearchItem {
int? id;
String? name;
int? view;
int? discuss;
String? statDesc;
String? description;
bool? showInteractData;
TopicPubSearchItem({
this.id,
this.name,
this.view,
this.discuss,
this.statDesc,
this.description,
this.showInteractData,
});
factory TopicPubSearchItem.fromJson(Map<String, dynamic> json) =>
TopicPubSearchItem(
id: json['id'] as int?,
name: json['name'] as String?,
view: json['view'] as int?,
discuss: json['discuss'] as int?,
statDesc: json['stat_desc'] as String?,
description: json['description'] as String?,
showInteractData: json['show_interact_data'] as bool?,
);
}