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:
Faris Armoush
2025-07-16 10:29:43 +03:00
parent 9a203b2fd9
commit 4ef4858cee

View File

@ -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,
};
} }
} }