import 'PageAndSort.dart';

class CommitmentsRequest {
  PageAndSort? query;

  /// ISO day the plan is being requested for; empty means today.
  String day;

  /// Filter by status name; empty means all.
  String status;

  CommitmentsRequest({this.query, this.day = "", this.status = ""});

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