mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
22 lines
532 B
Dart
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?,
|
|
);
|
|
}
|