aggiunto trim nei tojson
This commit is contained in:
@@ -34,8 +34,7 @@ class ModelModel extends Equatable {
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
if (id != null) 'id': id,
|
||||
'name': name.toLowerCase(),
|
||||
'name_with_brand': nameWithBrand.toLowerCase(),
|
||||
'name': name.toLowerCase().trim(),
|
||||
'brand_id': brandId,
|
||||
'is_active': isActive,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user