import 'package:json_annotation/json_annotation.dart';
import 'package:location/base/app_base_request.dart';

part 'query_track_request.g.dart';

@JsonSerializable()
class QueryTrackRequest extends AppBaseRequest {
  @JsonKey(name: "start")
  final int? startTime;

  @JsonKey(name: "end")
  final int? endTime;

  @JsonKey(name: "userId")
  final String? userId;

  QueryTrackRequest(
      {required this.startTime, required this.endTime, required this.userId});

  @override
  Map<String, dynamic> toJson() => _$QueryTrackRequestToJson(this);
}
