Added Service

This commit is contained in:
2026-02-21 21:57:31 +08:00
parent 6238c701c0
commit 46a84b4d95
8 changed files with 171 additions and 41 deletions
+7 -2
View File
@@ -1,10 +1,15 @@
class Office {
Office({required this.id, required this.name});
Office({required this.id, required this.name, this.serviceId});
final String id;
final String name;
final String? serviceId;
factory Office.fromMap(Map<String, dynamic> map) {
return Office(id: map['id'] as String, name: map['name'] as String? ?? '');
return Office(
id: map['id'] as String,
name: map['name'] as String? ?? '',
serviceId: map['service_id'] as String?,
);
}
}