// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'recent_activity.dart';

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

_$RecentActivityImpl _$$RecentActivityImplFromJson(Map<String, dynamic> json) =>
    _$RecentActivityImpl(
      id: (json['id'] as num).toInt(),
      activityType: json['activity_type'] as String,
      entityType: json['entity_type'] as String,
      entityId: (json['entity_id'] as num).toInt(),
      entityName: json['entity_name'] as String,
      description: json['description'] as String,
      userId: (json['user_id'] as num?)?.toInt(),
      userName: json['user_name'] as String?,
      timestamp: DateTime.parse(json['timestamp'] as String),
      metadata: json['metadata'] as Map<String, dynamic>?,
    );

Map<String, dynamic> _$$RecentActivityImplToJson(
        _$RecentActivityImpl instance) =>
    <String, dynamic>{
      'id': instance.id,
      'activity_type': instance.activityType,
      'entity_type': instance.entityType,
      'entity_id': instance.entityId,
      'entity_name': instance.entityName,
      'description': instance.description,
      'user_id': instance.userId,
      'user_name': instance.userName,
      'timestamp': instance.timestamp.toIso8601String(),
      'metadata': instance.metadata,
    };
