// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'game_dtos.dart';

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

_$GameDtoImpl _$$GameDtoImplFromJson(Map<String, dynamic> json) =>
    _$GameDtoImpl(
      id: json['id'] as String?,
      name: json['name'] as String?,
      type: json['type'] as String?,
      isActive: json['is_active'] as bool?,
      metadata: json['metadata'] as Map<String, dynamic>?,
      createdAt: json['created_at'] as String?,
      updatedAt: json['updated_at'] as String?,
    );

Map<String, dynamic> _$$GameDtoImplToJson(_$GameDtoImpl instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'type': instance.type,
      'is_active': instance.isActive,
      'metadata': instance.metadata,
      'created_at': instance.createdAt,
      'updated_at': instance.updatedAt,
    };

_$GamePrizeDtoImpl _$$GamePrizeDtoImplFromJson(Map<String, dynamic> json) =>
    _$GamePrizeDtoImpl(
      id: json['id'] as String?,
      gameId: json['game_id'] as String?,
      name: json['name'] as String?,
      weight: (json['weight'] as num?)?.toInt(),
      stock: (json['stock'] as num?)?.toInt(),
      maxStock: (json['max_stock'] as num?)?.toInt(),
      threshold: (json['threshold'] as num?)?.toInt(),
      metadata: json['metadata'] as Map<String, dynamic>?,
      game: json['game'] == null
          ? null
          : GameDto.fromJson(json['game'] as Map<String, dynamic>),
      createdAt: json['created_at'] as String?,
      updatedAt: json['updated_at'] as String?,
    );

Map<String, dynamic> _$$GamePrizeDtoImplToJson(_$GamePrizeDtoImpl instance) =>
    <String, dynamic>{
      'id': instance.id,
      'game_id': instance.gameId,
      'name': instance.name,
      'weight': instance.weight,
      'stock': instance.stock,
      'max_stock': instance.maxStock,
      'threshold': instance.threshold,
      'metadata': instance.metadata,
      'game': instance.game,
      'created_at': instance.createdAt,
      'updated_at': instance.updatedAt,
    };
