mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
@ -14,6 +14,7 @@ class SpaceModel {
|
||||
String? icon;
|
||||
final String? spaceTuyaUuid;
|
||||
String name;
|
||||
String? lastThreeParents;
|
||||
final bool isPrivate;
|
||||
final String? invitationCode;
|
||||
SpaceModel? parent;
|
||||
@ -33,6 +34,7 @@ class SpaceModel {
|
||||
SpaceModel({
|
||||
this.uuid,
|
||||
String? internalId,
|
||||
this.lastThreeParents,
|
||||
this.spaceTuyaUuid,
|
||||
required this.icon,
|
||||
required this.name,
|
||||
@ -67,6 +69,7 @@ class SpaceModel {
|
||||
internalId: internalId,
|
||||
uuid: json['uuid'] ?? '',
|
||||
name: json['spaceName'],
|
||||
lastThreeParents: json['lastThreeParents'],
|
||||
isPrivate: json['isPrivate'] ?? false,
|
||||
invitationCode: json['invitationCode'],
|
||||
subspaces: (json['subspaces'] as List<dynamic>?)
|
||||
@ -125,6 +128,7 @@ class SpaceModel {
|
||||
'uuid': uuid ?? '',
|
||||
'spaceTuyaUuid': spaceTuyaUuid,
|
||||
'name': name,
|
||||
'lastThreeParents': lastThreeParents,
|
||||
'isPrivate': isPrivate,
|
||||
'invitationCode': invitationCode,
|
||||
'parent': parent?.uuid,
|
||||
|
Reference in New Issue
Block a user