// SPDX-FileCopyrightText: 2026 FocusFlow contributors
// SPDX-License-Identifier: AGPL-3.0-only

part of '../../document_mapping.dart';

/// Convenience extension for converting [TaskStatistics] into an embedded map.
extension TaskStatisticsDocumentExtension on TaskStatistics {
  /// Converts scheduler data for `toDocument` without changing the source object.
  /// Conversion helpers keep persistence and export shapes explicit so domain models do not depend on storage-specific details.
  Map<String, Object?> toDocument() {
    return TaskStatisticsDocumentMapping.toDocument(this);
  }
}
