// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'achievement_model.dart';

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

AchievementModel _$AchievementModelFromJson(Map<String, dynamic> json) =>
    AchievementModel(
      id: json['id'] as String?,
      achievementName: json['achievement_name'] as String?,
      achievementIconUrl: json['achievement_icon_url'] as String?,
      applyForGroup: json['apply_for_group'] as String?,
      clickActionType: json['click_action_type'] as String?,
      clickActionParam: json['click_action_param'] as String?,
      images:
          (json['images'] as List<dynamic>?)
              ?.map(
                (e) =>
                    AchievementImageModel.fromJson(e as Map<String, dynamic>),
              )
              .toList(),
    );

Map<String, dynamic> _$AchievementModelToJson(AchievementModel instance) =>
    <String, dynamic>{
      'id': instance.id,
      'achievement_name': instance.achievementName,
      'achievement_icon_url': instance.achievementIconUrl,
      'apply_for_group': instance.applyForGroup,
      'click_action_type': instance.clickActionType,
      'click_action_param': instance.clickActionParam,
      'images': instance.images,
    };

AchievementImageModel _$AchievementImageModelFromJson(
  Map<String, dynamic> json,
) => AchievementImageModel(
  id: json['id'] as String?,
  imageType: json['image_type'] as String?,
  imageUrl: json['image_url'] as String?,
);

Map<String, dynamic> _$AchievementImageModelToJson(
  AchievementImageModel instance,
) => <String, dynamic>{
  'id': instance.id,
  'image_type': instance.imageType,
  'image_url': instance.imageUrl,
};
