APP_NEW/lib/Class/Diagnosis/symptom.dart
2025-03-11 21:17:14 +08:00

20 lines
447 B
Dart

import 'package:lamiter/Class/Entity/entity.dart';
class Symptom extends Entity {
final String description;
Symptom({
required super.id,
required super.name,
required this.description,
});
// Named constructor from JSON
Symptom.fromJson(Map<String, dynamic> json)
: description = json['description'] as String,
super(
id: json['_id'] as String,
name: json['name'] as String,
);
}