/*
 * @Author: wangyang 1147192855@qq.com
 * @Date: 2022-07-19 16:17:38
 * @LastEditors: wangyang 1147192855@qq.com
 * @LastEditTime: 2022-07-19 16:22:41
 * @FilePath: \marking_app\lib\common\model\common\base_page.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import 'package:json_annotation/json_annotation.dart';

part 'base_page.g.dart';

@JsonSerializable()
class BasePage extends Object {
  @JsonKey(name: 'PageNumber')
  int page;

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

  BasePage(
    this.page,
    this.limit,
  );

  factory BasePage.fromJson(Map<String, dynamic> srcJson) => _$BasePageFromJson(srcJson);

  Map<String, dynamic> toJson() => _$BasePageToJson(this);
}
