import 'PageAndSort.dart';

/// Every list endpoint takes this shape. Never inline flat sort/page fields.
class HistoryRequest {
  PageAndSort? query;

  HistoryRequest({this.query});

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['query'] = query?.toJson();
    return data;
  }
}
