import 'package:PiliPlus/models_new/bubble/sort_item.dart'; class SortInfo { bool? showSort; List? sortItems; int? curSortType; SortInfo({ this.showSort, this.sortItems, this.curSortType, }); factory SortInfo.fromJson(Map json) => SortInfo( showSort: json['show_sort'] as bool?, sortItems: (json['sort_items'] as List?) ?.map((e) => SortItem.fromJson(e as Map)) .toList(), curSortType: json['cur_sort_type'] as int?, ); }