// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'administrator_dto.dart';

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

_$AdministratorDtoImpl _$$AdministratorDtoImplFromJson(
        Map<String, dynamic> json) =>
    _$AdministratorDtoImpl(
      id: (json['id'] as num?)?.toInt(),
      name: json['name'] as String,
      phone: json['phone'] as String,
      mobile: json['mobile'] as String,
      email: json['email'] as String,
      passwd: json['passwd'] as String,
    );

Map<String, dynamic> _$$AdministratorDtoImplToJson(
        _$AdministratorDtoImpl instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'phone': instance.phone,
      'mobile': instance.mobile,
      'email': instance.email,
      'passwd': instance.passwd,
    };

_$AdministratorRequestDtoImpl _$$AdministratorRequestDtoImplFromJson(
        Map<String, dynamic> json) =>
    _$AdministratorRequestDtoImpl(
      name: json['name'] as String,
      phone: json['phone'] as String,
      mobile: json['mobile'] as String,
      email: json['email'] as String,
      passwd: json['passwd'] as String,
    );

Map<String, dynamic> _$$AdministratorRequestDtoImplToJson(
        _$AdministratorRequestDtoImpl instance) =>
    <String, dynamic>{
      'name': instance.name,
      'phone': instance.phone,
      'mobile': instance.mobile,
      'email': instance.email,
      'passwd': instance.passwd,
    };

_$AdministratorUpdateRequestDtoImpl
    _$$AdministratorUpdateRequestDtoImplFromJson(Map<String, dynamic> json) =>
        _$AdministratorUpdateRequestDtoImpl(
          name: json['name'] as String?,
          phone: json['phone'] as String?,
          mobile: json['mobile'] as String?,
          email: json['email'] as String?,
          passwd: json['passwd'] as String?,
        );

Map<String, dynamic> _$$AdministratorUpdateRequestDtoImplToJson(
        _$AdministratorUpdateRequestDtoImpl instance) =>
    <String, dynamic>{
      'name': instance.name,
      'phone': instance.phone,
      'mobile': instance.mobile,
      'email': instance.email,
      'passwd': instance.passwd,
    };

_$AdministratorListResponseImpl _$$AdministratorListResponseImplFromJson(
        Map<String, dynamic> json) =>
    _$AdministratorListResponseImpl(
      items: (json['data'] as List<dynamic>)
          .map((e) => AdministratorDto.fromJson(e as Map<String, dynamic>))
          .toList(),
      totalCount: (json['total'] as num).toInt(),
      currentPage: (json['page'] as num).toInt(),
      totalPages: (json['total_pages'] as num).toInt(),
      pageSize: (json['page_size'] as num?)?.toInt(),
    );

Map<String, dynamic> _$$AdministratorListResponseImplToJson(
        _$AdministratorListResponseImpl instance) =>
    <String, dynamic>{
      'data': instance.items,
      'total': instance.totalCount,
      'page': instance.currentPage,
      'total_pages': instance.totalPages,
      'page_size': instance.pageSize,
    };
