diff --git a/lib/features/products/models/brand_model.dart b/lib/features/products/models/brand_model.dart index 59426a1..72e02b1 100644 --- a/lib/features/products/models/brand_model.dart +++ b/lib/features/products/models/brand_model.dart @@ -31,7 +31,7 @@ class BrandModel extends Equatable { Map toJson() { return { if (id != null) 'id': id, - 'name': name.toLowerCase(), + 'name': name.toLowerCase().trim(), 'company_id': companyId, 'is_active': isActive, };