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

part 'talk_paginate_request.g.dart';

@JsonSerializable()
class TalkPaginateRequest extends AppBaseRequest {
  @JsonKey(name: 'offset')
  int offset;

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

  @JsonKey(name: 'searchKeyword')
  String? searchKeyword;

  @JsonKey(name: 'sortType')
  int? sortType;

  TalkPaginateRequest(this.offset, this.limit,
      {this.searchKeyword, this.sortType});

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