toPutJson method
Converts the body data model to a JSON object for a PUT request.
This method should be implemented by subclasses to convert their specific data to a JSON object. It should only include properties that need to be sent in a PUT request.
Implementation
@override
Map<String, dynamic>? toPutJson() {
Map<String, dynamic> data = <String, dynamic>{};
data['sku'] = sku;
data['productId'] = productId;
data['quantity'] = quantity;
data['type'] = type;
data['status'] = status;
data['include'] = include;
data['note'] = note;
data['startDate'] = startDate;
data['endDate'] = endDate;
data['purchaseDate'] = purchaseDate;
data['purchasePrice'] = purchasePrice;
data['purchaseCurrency'] = purchaseCurrency;
data['warehouseId'] = warehouseId;
data['supplierId'] = supplierId;
data['storeId'] = storeId;
return data;
}