// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'guild_profile.dart';

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

_GuildProfile _$GuildProfileFromJson(
  Map<String, dynamic> json,
) => _GuildProfile(
  id: (json['id'] as num?)?.toInt(),
  user: json['user'] == null
      ? null
      : User.fromJson(json['user'] as Map<String, dynamic>),
  address: json['address'] == null
      ? null
      : Address.fromJson(json['address'] as Map<String, dynamic>),
  guild_area_activity: json['guild_area_activity'] == null
      ? null
      : GuildAreaActivity.fromJson(
          json['guild_area_activity'] as Map<String, dynamic>,
        ),
  guild_type_activity: json['guild_type_activity'] == null
      ? null
      : GuildTypeActivity.fromJson(
          json['guild_type_activity'] as Map<String, dynamic>,
        ),
  kill_house: json['kill_house'] as List<dynamic>?,
  steward_kill_house: json['steward_kill_house'] as List<dynamic>?,
  stewards: json['stewards'] as List<dynamic>?,
  get_pos_status: json['get_pos_status'] == null
      ? null
      : GetPosStatus.fromJson(json['get_pos_status'] as Map<String, dynamic>),
  key: json['key'] as String?,
  create_date: json['create_date'] as String?,
  modify_date: json['modify_date'] as String?,
  trash: json['trash'] as bool?,
  user_id_foreign_key: json['user_id_foreign_key'] as String?,
  address_id_foreign_key: json['address_id_foreign_key'] as String?,
  user_bank_id_foreign_key: json['user_bank_id_foreign_key'] as String?,
  wallet_id_foreign_key: json['wallet_id_foreign_key'] as String?,
  provincial_government_id_key: json['provincial_government_id_key'] as String?,
  identity_documents: json['identity_documents'],
  active: json['active'] as bool?,
  city_number: (json['city_number'] as num?)?.toInt(),
  city_name: json['city_name'] as String?,
  guilds_id: json['guilds_id'] as String?,
  license_number: json['license_number'] as String?,
  guilds_name: json['guilds_name'] as String?,
  phone: json['phone'] as String?,
  type_activity: json['type_activity'] as String?,
  area_activity: json['area_activity'] as String?,
  province_number: (json['province_number'] as num?)?.toInt(),
  province_name: json['province_name'] as String?,
  steward: json['steward'] as bool?,
  has_pos: json['has_pos'] as bool?,
  centers_allocation: json['centers_allocation'],
  kill_house_centers_allocation: json['kill_house_centers_allocation'],
  allocation_limit: json['allocation_limit'],
  limitation_allocation: json['limitation_allocation'] as bool?,
  registerar_role: json['registerar_role'] as String?,
  registerar_fullname: json['registerar_fullname'] as String?,
  registerar_mobile: json['registerar_mobile'] as String?,
  kill_house_register: json['kill_house_register'] as bool?,
  steward_register: json['steward_register'] as bool?,
  guilds_room_register: json['guilds_room_register'] as bool?,
  pos_company_register: json['pos_company_register'] as bool?,
  province_accept_state: json['province_accept_state'] as String?,
  province_message: json['province_message'] as String?,
  condition: json['condition'] as String?,
  description_condition: json['description_condition'] as String?,
  steward_active: json['steward_active'] as bool?,
  steward_allocation_limit: json['steward_allocation_limit'],
  steward_limitation_allocation: json['steward_limitation_allocation'] as bool?,
  license: json['license'] as bool?,
  license_form: json['license_form'],
  license_file: json['license_file'],
  reviewer_role: json['reviewer_role'] as String?,
  reviewer_fullname: json['reviewer_fullname'] as String?,
  reviewer_mobile: json['reviewer_mobile'] as String?,
  checker_message: json['checker_message'] as String?,
  final_accept: json['final_accept'] as bool?,
  temporary_registration: json['temporary_registration'] as bool?,
  created_by: json['created_by'] as String?,
  modified_by: json['modified_by'] as String?,
  user_bank_info: json['user_bank_info'],
  wallet: (json['wallet'] as num?)?.toInt(),
  cars: json['cars'] as List<dynamic>?,
  user_level: json['user_level'] as List<dynamic>?,
);

Map<String, dynamic> _$GuildProfileToJson(_GuildProfile instance) =>
    <String, dynamic>{
      'id': instance.id,
      'user': instance.user,
      'address': instance.address,
      'guild_area_activity': instance.guild_area_activity,
      'guild_type_activity': instance.guild_type_activity,
      'kill_house': instance.kill_house,
      'steward_kill_house': instance.steward_kill_house,
      'stewards': instance.stewards,
      'get_pos_status': instance.get_pos_status,
      'key': instance.key,
      'create_date': instance.create_date,
      'modify_date': instance.modify_date,
      'trash': instance.trash,
      'user_id_foreign_key': instance.user_id_foreign_key,
      'address_id_foreign_key': instance.address_id_foreign_key,
      'user_bank_id_foreign_key': instance.user_bank_id_foreign_key,
      'wallet_id_foreign_key': instance.wallet_id_foreign_key,
      'provincial_government_id_key': instance.provincial_government_id_key,
      'identity_documents': instance.identity_documents,
      'active': instance.active,
      'city_number': instance.city_number,
      'city_name': instance.city_name,
      'guilds_id': instance.guilds_id,
      'license_number': instance.license_number,
      'guilds_name': instance.guilds_name,
      'phone': instance.phone,
      'type_activity': instance.type_activity,
      'area_activity': instance.area_activity,
      'province_number': instance.province_number,
      'province_name': instance.province_name,
      'steward': instance.steward,
      'has_pos': instance.has_pos,
      'centers_allocation': instance.centers_allocation,
      'kill_house_centers_allocation': instance.kill_house_centers_allocation,
      'allocation_limit': instance.allocation_limit,
      'limitation_allocation': instance.limitation_allocation,
      'registerar_role': instance.registerar_role,
      'registerar_fullname': instance.registerar_fullname,
      'registerar_mobile': instance.registerar_mobile,
      'kill_house_register': instance.kill_house_register,
      'steward_register': instance.steward_register,
      'guilds_room_register': instance.guilds_room_register,
      'pos_company_register': instance.pos_company_register,
      'province_accept_state': instance.province_accept_state,
      'province_message': instance.province_message,
      'condition': instance.condition,
      'description_condition': instance.description_condition,
      'steward_active': instance.steward_active,
      'steward_allocation_limit': instance.steward_allocation_limit,
      'steward_limitation_allocation': instance.steward_limitation_allocation,
      'license': instance.license,
      'license_form': instance.license_form,
      'license_file': instance.license_file,
      'reviewer_role': instance.reviewer_role,
      'reviewer_fullname': instance.reviewer_fullname,
      'reviewer_mobile': instance.reviewer_mobile,
      'checker_message': instance.checker_message,
      'final_accept': instance.final_accept,
      'temporary_registration': instance.temporary_registration,
      'created_by': instance.created_by,
      'modified_by': instance.modified_by,
      'user_bank_info': instance.user_bank_info,
      'wallet': instance.wallet,
      'cars': instance.cars,
      'user_level': instance.user_level,
    };

_User _$UserFromJson(Map<String, dynamic> json) => _User(
  fullname: json['fullname'] as String?,
  first_name: json['first_name'] as String?,
  last_name: json['last_name'] as String?,
  mobile: json['mobile'] as String?,
  national_id: json['national_id'] as String?,
  city: json['city'] as String?,
);

Map<String, dynamic> _$UserToJson(_User instance) => <String, dynamic>{
  'fullname': instance.fullname,
  'first_name': instance.first_name,
  'last_name': instance.last_name,
  'mobile': instance.mobile,
  'national_id': instance.national_id,
  'city': instance.city,
};

_Address _$AddressFromJson(Map<String, dynamic> json) => _Address(
  province: json['province'] == null
      ? null
      : Province.fromJson(json['province'] as Map<String, dynamic>),
  city: json['city'] == null
      ? null
      : City.fromJson(json['city'] as Map<String, dynamic>),
  address: json['address'] as String?,
  postal_code: json['postal_code'] as String?,
);

Map<String, dynamic> _$AddressToJson(_Address instance) => <String, dynamic>{
  'province': instance.province,
  'city': instance.city,
  'address': instance.address,
  'postal_code': instance.postal_code,
};

_Province _$ProvinceFromJson(Map<String, dynamic> json) =>
    _Province(key: json['key'] as String?, name: json['name'] as String?);

Map<String, dynamic> _$ProvinceToJson(_Province instance) => <String, dynamic>{
  'key': instance.key,
  'name': instance.name,
};

_City _$CityFromJson(Map<String, dynamic> json) =>
    _City(key: json['key'] as String?, name: json['name'] as String?);

Map<String, dynamic> _$CityToJson(_City instance) => <String, dynamic>{
  'key': instance.key,
  'name': instance.name,
};

_GuildAreaActivity _$GuildAreaActivityFromJson(Map<String, dynamic> json) =>
    _GuildAreaActivity(
      key: json['key'] as String?,
      title: json['title'] as String?,
    );

Map<String, dynamic> _$GuildAreaActivityToJson(_GuildAreaActivity instance) =>
    <String, dynamic>{'key': instance.key, 'title': instance.title};

_GuildTypeActivity _$GuildTypeActivityFromJson(Map<String, dynamic> json) =>
    _GuildTypeActivity(
      key: json['key'] as String?,
      title: json['title'] as String?,
    );

Map<String, dynamic> _$GuildTypeActivityToJson(_GuildTypeActivity instance) =>
    <String, dynamic>{'key': instance.key, 'title': instance.title};

_GetPosStatus _$GetPosStatusFromJson(Map<String, dynamic> json) =>
    _GetPosStatus(
      len_active_sessions: (json['len_active_sessions'] as num?)?.toInt(),
      has_pons: json['has_pons'] as bool?,
      has_active_pons: json['has_active_pons'] as bool?,
    );

Map<String, dynamic> _$GetPosStatusToJson(_GetPosStatus instance) =>
    <String, dynamic>{
      'len_active_sessions': instance.len_active_sessions,
      'has_pons': instance.has_pons,
      'has_active_pons': instance.has_active_pons,
    };
