completed migrating data scope from user to workspace

This commit is contained in:
2026-06-22 22:10:38 +02:00
parent 62c7f53de0
commit ae2705363a
37 changed files with 918 additions and 221 deletions

View File

@@ -0,0 +1,47 @@
class WorkspaceModel {
final String id;
final String createdAt;
final String updatedAt;
final bool deleted;
final String name;
final String description;
final String phone;
final String email;
WorkspaceModel({
required this.id,
required this.createdAt,
required this.updatedAt,
required this.deleted,
required this.name,
required this.description,
required this.phone,
required this.email,
});
factory WorkspaceModel.fromJson(Map<String, dynamic> json) {
return WorkspaceModel(
id: json['id'] as String,
createdAt: json['createdAt'] as String,
updatedAt: json['updatedAt'] as String,
deleted: json['deleted'] as bool,
name: json['name'] as String,
description: json['description'] as String,
phone: json['phone'] as String,
email: json['email'] as String,
);
}
Map<String, dynamic> toJson() {
return {
'id': id,
'createdAt': createdAt,
'updatedAt': updatedAt,
'deleted': deleted,
'name': name,
'description': description,
'phone': phone,
'email': email,
};
}
}