import 'package:PiliPlus/models/live/live_feed_index/card_data_list_item.dart'; import 'package:PiliPlus/models/live/live_second_list/tag.dart'; class LiveSecondData { int? count; List? cardList; List? newTags; LiveSecondData({ this.count, this.cardList, this.newTags, }); factory LiveSecondData.fromJson(Map json) => LiveSecondData( count: json['count'] as int?, cardList: (json['list'] as List?) ?.map((e) => CardLiveItem.fromJson(e as Map)) .toList(), newTags: (json['new_tags'] as List?) ?.map((e) => LiveSecondTag.fromJson(e as Map)) .toList(), ); }