mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-25 15:39:41 +00:00
Added x, and y to the toJson
method of CreateSpaceParam
, since the API still needs them as required properties. Revert the once the BE removes those properties.
This commit is contained in:
@ -12,6 +12,11 @@ class CreateSpaceParam {
|
||||
});
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {'spaceModelUuid': parentUuid, ...space.toJson()};
|
||||
return {
|
||||
'spaceModelUuid': parentUuid,
|
||||
...space.toJson(),
|
||||
'x': 0,
|
||||
'y': 0,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user