Files
flutterApp/lib/core/data/base_model.dart
2026-01-27 18:44:49 +08:00

10 lines
261 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import '../../features/devices/domain/entities/device_entity.dart';
abstract class BaseModel<E> {
/// 将 Model 转换为对应的 Domain Entity
E toEntity();
/// 将 Model 转换为 JSON(用于持久化或日志)
Map<String, dynamic> toJson();
}