import 'package:PiliPlus/models_new/dynamic/dyn_topic_pub_search/page_info.dart'; import 'package:PiliPlus/models_new/dynamic/dyn_topic_top/topic_item.dart'; class TopicPubSearchData { List? topicItems; PageInfo? pageInfo; TopicPubSearchData({ this.topicItems, this.pageInfo, }); factory TopicPubSearchData.fromJson(Map json) => TopicPubSearchData( topicItems: (json['topic_items'] as List?) ?.map((e) => TopicItem.fromJson(e as Map)) .toList(), pageInfo: json['page_info'] == null ? null : PageInfo.fromJson(json['page_info'] as Map), ); }