// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'custom_config_info.dart';

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

CustomConfigInfo _$CustomConfigInfoFromJson(
  Map<String, dynamic> json,
) => CustomConfigInfo(
  hobbies:
      (json['hobbies'] as List<dynamic>?)
          ?.map((e) => Hobbies.fromJson(e as Map<String, dynamic>))
          .toList(),
  customHobby: json['customHobby'] as bool?,
  minHobbyNum: (json['minHobbyNum'] as num?)?.toInt(),
  maxHobbyNum: (json['maxHobbyNum'] as num?)?.toInt(),
  maxHobbyWords: (json['maxHobbyWords'] as num?)?.toInt(),
  boyAvatars:
      (json['boyAvatars'] as List<dynamic>?)?.map((e) => e as String).toList(),
  girlAvatars:
      (json['girlAvatars'] as List<dynamic>?)?.map((e) => e as String).toList(),
  characters:
      (json['characters'] as List<dynamic>?)
          ?.map((e) => CharactersList.fromJson(e as Map<String, dynamic>))
          .toList(),
  customCharacter: json['customCharacter'] as bool?,
  minCharacterNum: (json['minCharacterNum'] as num?)?.toInt(),
  maxCharacterNum: (json['maxCharacterNum'] as num?)?.toInt(),
  maxCharacterWords: (json['maxCharacterWords'] as num?)?.toInt(),
);

Map<String, dynamic> _$CustomConfigInfoToJson(CustomConfigInfo instance) =>
    <String, dynamic>{
      'hobbies': instance.hobbies,
      'customHobby': instance.customHobby,
      'minHobbyNum': instance.minHobbyNum,
      'maxHobbyNum': instance.maxHobbyNum,
      'maxHobbyWords': instance.maxHobbyWords,
      'boyAvatars': instance.boyAvatars,
      'girlAvatars': instance.girlAvatars,
      'characters': instance.characters,
      'customCharacter': instance.customCharacter,
      'minCharacterNum': instance.minCharacterNum,
      'maxCharacterNum': instance.maxCharacterNum,
      'maxCharacterWords': instance.maxCharacterWords,
    };

Hobbies _$HobbiesFromJson(Map<String, dynamic> json) => Hobbies(
  id: (json['id'] as num?)?.toInt(),
  name: json['name'] as String?,
  emoji: json['emoji'] as String?,
);

Map<String, dynamic> _$HobbiesToJson(Hobbies instance) => <String, dynamic>{
  'id': instance.id,
  'name': instance.name,
  'emoji': instance.emoji,
};

CharactersList _$CharactersListFromJson(Map<String, dynamic> json) =>
    CharactersList(
      id: (json['id'] as num?)?.toInt(),
      name: json['name'] as String?,
      emoji: json['emoji'] as String?,
    );

Map<String, dynamic> _$CharactersListToJson(CharactersList instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'emoji': instance.emoji,
    };
