toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['ItemName'] = itemName;
data['Quantity'] = quantity;
data['UnitPrice'] = unitPrice;
data['Weight'] = weight;
data['Width'] = width;
data['Height'] = height;
data['Depth'] = depth;
return data;
}