// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'focus_session.dart';

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

FocusSession _$FocusSessionFromJson(Map<String, dynamic> json) => FocusSession(
  id: (json['id'] as num).toInt(),
  startTime: FocusSession._dateTimeFromJson(json['start_time']),
  endTime: FocusSession._nullableDateTimeFromJson(json['end_time']),
  durationSeconds: (json['duration_seconds'] as num?)?.toInt(),
  xpEarned: (json['xp_earned'] as num).toInt(),
  status: json['status'] as String,
  createdAt: FocusSession._dateTimeFromJson(json['created_at']),
  updatedAt: FocusSession._dateTimeFromJson(json['updated_at']),
);

Map<String, dynamic> _$FocusSessionToJson(FocusSession instance) =>
    <String, dynamic>{
      'id': instance.id,
      'start_time': FocusSession._dateTimeToJson(instance.startTime),
      'end_time': FocusSession._nullableDateTimeToJson(instance.endTime),
      'duration_seconds': instance.durationSeconds,
      'xp_earned': instance.xpEarned,
      'status': instance.status,
      'created_at': FocusSession._dateTimeToJson(instance.createdAt),
      'updated_at': FocusSession._dateTimeToJson(instance.updatedAt),
    };
