// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'activity.dart';

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

Activity _$ActivityFromJson(Map<String, dynamic> json) => Activity(
  id: (json['id'] as num).toInt(),
  type: json['type'] as String,
  application: json['application'] as String,
  metadata: json['metadata'] as Map<String, dynamic>?,
  timestamp: Activity._timestampFromJson(json['timestamp']),
  durationSeconds: (json['duration_seconds'] as num).toInt(),
);

Map<String, dynamic> _$ActivityToJson(Activity instance) => <String, dynamic>{
  'id': instance.id,
  'type': instance.type,
  'application': instance.application,
  'metadata': instance.metadata,
  'timestamp': Activity._timestampToJson(instance.timestamp),
  'duration_seconds': instance.durationSeconds,
};
