// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'user_profile.dart';

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

_UserProfile _$UserProfileFromJson(Map<String, dynamic> json) => _UserProfile(
  role: (json['role'] as List<dynamic>?)?.map((e) => e as String).toList(),
  city: json['city'] as String?,
  province: json['province'] as String?,
  key: json['key'] as String?,
  userGateWayId: json['user_gate_way_id'] as String?,
  userDjangoIdForeignKey: json['user_django_id_foreign_key'],
  provinceIdForeignKey: json['province_id_foreign_key'],
  cityIdForeignKey: json['city_id_foreign_key'],
  systemUserProfileIdKey: json['system_user_profile_id_key'],
  fullname: json['fullname'] as String?,
  firstName: json['first_name'] as String?,
  lastName: json['last_name'] as String?,
  nationalCode: json['national_code'] as String?,
  nationalCodeImage: json['national_code_image'] as String?,
  nationalId: json['national_id'] as String?,
  mobile: json['mobile'] as String?,
  birthday: json['birthday'] as String?,
  image: json['image'] as String?,
  password: json['password'] as String?,
  active: json['active'] as bool?,
  state: json['state'] == null
      ? null
      : UserState.fromJson(json['state'] as Map<String, dynamic>),
  baseOrder: (json['base_order'] as num?)?.toInt(),
  cityNumber: (json['city_number'] as num?)?.toInt(),
  cityName: json['city_name'] as String?,
  provinceNumber: (json['province_number'] as num?)?.toInt(),
  provinceName: json['province_name'] as String?,
  unitName: json['unit_name'] as String?,
  unitNationalId: json['unit_national_id'] as String?,
  unitRegistrationNumber: json['unit_registration_number'] as String?,
  unitEconomicalNumber: json['unit_economical_number'] as String?,
  unitProvince: json['unit_province'] as String?,
  unitCity: json['unit_city'] as String?,
  unitPostalCode: json['unit_postal_code'] as String?,
  unitAddress: json['unit_address'] as String?,
  personType: json['person_type'] as String?,
  type: json['type'] as String?,
);

Map<String, dynamic> _$UserProfileToJson(_UserProfile instance) =>
    <String, dynamic>{
      'role': instance.role,
      'city': instance.city,
      'province': instance.province,
      'key': instance.key,
      'user_gate_way_id': instance.userGateWayId,
      'user_django_id_foreign_key': instance.userDjangoIdForeignKey,
      'province_id_foreign_key': instance.provinceIdForeignKey,
      'city_id_foreign_key': instance.cityIdForeignKey,
      'system_user_profile_id_key': instance.systemUserProfileIdKey,
      'fullname': instance.fullname,
      'first_name': instance.firstName,
      'last_name': instance.lastName,
      'national_code': instance.nationalCode,
      'national_code_image': instance.nationalCodeImage,
      'national_id': instance.nationalId,
      'mobile': instance.mobile,
      'birthday': instance.birthday,
      'image': instance.image,
      'password': instance.password,
      'active': instance.active,
      'state': instance.state,
      'base_order': instance.baseOrder,
      'city_number': instance.cityNumber,
      'city_name': instance.cityName,
      'province_number': instance.provinceNumber,
      'province_name': instance.provinceName,
      'unit_name': instance.unitName,
      'unit_national_id': instance.unitNationalId,
      'unit_registration_number': instance.unitRegistrationNumber,
      'unit_economical_number': instance.unitEconomicalNumber,
      'unit_province': instance.unitProvince,
      'unit_city': instance.unitCity,
      'unit_postal_code': instance.unitPostalCode,
      'unit_address': instance.unitAddress,
      'person_type': instance.personType,
      'type': instance.type,
    };

_UserState _$UserStateFromJson(Map<String, dynamic> json) => _UserState(
  city: json['city'] as String?,
  image: json['image'] as String?,
  mobile: json['mobile'] as String?,
  birthday: json['birthday'] as String?,
  province: json['province'] as String?,
  lastName: json['last_name'] as String?,
  firstName: json['first_name'] as String?,
  nationalId: json['national_id'] as String?,
  nationalCode: json['national_code'] as String?,
);

Map<String, dynamic> _$UserStateToJson(_UserState instance) =>
    <String, dynamic>{
      'city': instance.city,
      'image': instance.image,
      'mobile': instance.mobile,
      'birthday': instance.birthday,
      'province': instance.province,
      'last_name': instance.lastName,
      'first_name': instance.firstName,
      'national_id': instance.nationalId,
      'national_code': instance.nationalCode,
    };
