mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-25 22:09:40 +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() {
|
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