// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'activity_event.dart';

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

ActivityEvent _$ActivityEventFromJson(Map<String, dynamic> json) =>
    ActivityEvent(
      type: $enumDecode(_$ActivityEventTypeEnumMap, json['type']),
      application: json['application'] as String,
      metadata: json['metadata'] as String?,
      timestamp: DateTime.parse(json['timestamp'] as String),
    );

Map<String, dynamic> _$ActivityEventToJson(ActivityEvent instance) =>
    <String, dynamic>{
      'type': _$ActivityEventTypeEnumMap[instance.type]!,
      'application': instance.application,
      'metadata': instance.metadata,
      'timestamp': instance.timestamp.toIso8601String(),
    };

const _$ActivityEventTypeEnumMap = {
  ActivityEventType.coding: 'coding',
  ActivityEventType.focusedBrowsing: 'focused_browsing',
  ActivityEventType.collaboration: 'collaboration',
  ActivityEventType.meetings: 'meetings',
  ActivityEventType.misc: 'misc',
  ActivityEventType.uncategorized: 'uncategorized',
};
