Files
PiliPlus/lib/models_new/bubble/sort_info.dart
dom 222c9d01a0 bubble page
Signed-off-by: dom <githubaccount56556@proton.me>
2026-04-09 21:32:07 +08:00

22 lines
532 B
Dart

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