updated body for update space model

This commit is contained in:
hannathkadher
2025-03-06 11:41:36 +04:00
parent d2ff909bf2
commit fecab17cbe
7 changed files with 26 additions and 31 deletions

View File

@ -4,7 +4,7 @@ class CreateTagBodyModel {
Map<String, dynamic> toJson() {
return {
'tag': tag,
'name': tag,
'productUuid': productUuid,
};
}

View File

@ -5,12 +5,14 @@ class TagModelUpdate {
final String? uuid;
final String? tag;
final String? productUuid;
final String? newTagUuid;
TagModelUpdate({
required this.action,
this.uuid,
this.tag,
this.productUuid,
this.newTagUuid,
});
factory TagModelUpdate.fromJson(Map<String, dynamic> json) {
@ -26,9 +28,10 @@ class TagModelUpdate {
Map<String, dynamic> toJson() {
return {
'action': action.value,
'uuid': uuid, // Nullable field
'tag': tag,
'tagUuid': uuid,
'name': tag,
'productUuid': productUuid,
'newTagUuid': newTagUuid
};
}
}