// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'page.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

PageInfo<D> _$PageInfoFromJson<D>(
  Map<String, dynamic> json,
  D Function(Object json) fromJsonD,
) {
  return PageInfo<D>()
    ..pageNum = json['pageNum'] as int
    ..current = json['current']
    ..pageSize = json['pageSize'] as int
    ..size = json['size']
    ..pages = json['pages']
    ..hasPreviousPage = json['hasPreviousPage'] as bool
    ..hasNextPage = json['hasNextPage'] as bool
    ..total = json['total'] as String
    ..list = (json['list'] as List)?.map(fromJsonD)?.toList()
    ..records = (json['records'] as List)?.map(fromJsonD)?.toList();
}

Map<String, dynamic> _$PageInfoToJson<D>(
  PageInfo<D> instance,
  Object Function(D value) toJsonD,
) =>
    <String, dynamic>{
      'pageNum': instance.pageNum,
      'current': instance.current,
      'pageSize': instance.pageSize,
      'size': instance.size,
      'pages': instance.pages,
      'hasPreviousPage': instance.hasPreviousPage,
      'hasNextPage': instance.hasNextPage,
      'total': instance.total,
      'list': instance.list?.map(toJsonD)?.toList(),
      'records': instance.records?.map(toJsonD)?.toList(),
    };