// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'websocket_message.dart';

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

WebSocketMessage _$WebSocketMessageFromJson(Map<String, dynamic> json) =>
    WebSocketMessage(
      type: $enumDecode(_$WebSocketMessageTypeEnumMap, json['type']),
      data: json['data'] as Map<String, dynamic>?,
      timestamp: (json['timestamp'] as num).toInt(),
    );

Map<String, dynamic> _$WebSocketMessageToJson(WebSocketMessage instance) =>
    <String, dynamic>{
      'type': _$WebSocketMessageTypeEnumMap[instance.type]!,
      'data': instance.data,
      'timestamp': instance.timestamp,
    };

const _$WebSocketMessageTypeEnumMap = {
  WebSocketMessageType.statsUpdate: 'statsUpdate',
  WebSocketMessageType.xpBreakdownUpdate: 'xpBreakdownUpdate',
  WebSocketMessageType.achievementUnlocked: 'achievementUnlocked',
  WebSocketMessageType.levelUp: 'levelUp',
  WebSocketMessageType.focusSessionComplete: 'focusSessionComplete',
  WebSocketMessageType.ping: 'ping',
  WebSocketMessageType.pong: 'pong',
};
