encode method
Implementation
Object encode() {
final Map<Object?, Object?> inventory = <Object?, Object?>{};
inventory['itemDescription'] = itemDescription;
inventory['price'] = price;
inventory['quantity'] = quantity;
return inventory;
}
Object encode() {
final Map<Object?, Object?> inventory = <Object?, Object?>{};
inventory['itemDescription'] = itemDescription;
inventory['price'] = price;
inventory['quantity'] = quantity;
return inventory;
}