toJson method
Implementation
Map toJson() => {
if (_description != null) 'description': _description,
if (_description != null) 'completeDescription': _completeDescription,
if (_id != null) 'id': _id,
if (_brand != null) 'brand': _brand,
if (_productType != null) 'productType': _productType,
if (_category != null) 'category': _category,
if (_subCategory != null) 'subCategory': _subCategory,
if (_variants != null) 'variants': _variants,
if (_productNames != null) 'productNames': _productNames,
if (_quantity != null) 'quantity': _quantity,
if (_size != null) 'size': _size,
if (_price != null) 'price': _price,
'promotionApplied': _promotionApplied,
'smartSearch': _smartSearch
};