Eliminar creche_app/lib/models/class_model.dart

This commit is contained in:
Alberto 2026-03-11 19:20:35 +00:00
parent c3d9619d4c
commit 7536993c3d
1 changed files with 0 additions and 30 deletions

View File

@ -1,30 +0,0 @@
class ClassModel {
final String id;
final String name;
final int capacity;
final String? teacherId;
ClassModel({
required this.id,
required this.name,
required this.capacity,
this.teacherId,
});
factory ClassModel.fromMap(Map<String, dynamic> map) {
return ClassModel(
id: map['id'] ?? '',
name: map['name'] ?? '',
capacity: map['capacity'] ?? 15,
teacherId: map['teacher_id'],
);
}
Map<String, dynamic> toMap() {
return {
'name': name,
'capacity': capacity,
'teacher_id': teacherId,
};
}
}