// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'achievement.dart';

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

Achievement _$AchievementFromJson(Map<String, dynamic> json) => Achievement(
  id: (json['id'] as num).toInt(),
  name: json['name'] as String,
  description: json['description'] as String,
  xpReward: (json['xp_reward'] as num).toInt(),
  achievedAt: Achievement._achievedAtFromJson(json['achieved_at']),
  levelAtAchievement: (json['level_at_achievement'] as num?)?.toInt(),
);

Map<String, dynamic> _$AchievementToJson(Achievement instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'description': instance.description,
      'xp_reward': instance.xpReward,
      'achieved_at': Achievement._achievedAtToJson(instance.achievedAt),
      'level_at_achievement': instance.levelAtAchievement,
    };
