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

part 'chat_history_request.g.dart';

@JsonSerializable()
class ChatHistoryRequest extends AppBaseRequest {
  @JsonKey(name: 'page')
  int pageCount;

  @JsonKey(name: 'pageSize')
  int pageSize;

  @JsonKey(name: 'id')
  String? lastId;

  ChatHistoryRequest(this.pageCount, this.pageSize, this.lastId);

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