decode static method
Implementation
static Inventory decode(Object message) {
final Map<Object?, Object?> inventory = message as Map<Object?, Object?>;
return Inventory(
itemDescription: inventory['itemDescription'] as String?,
price: inventory['price'] as double?,
quantity: inventory['quantity'] as int?,
);
}