decode static method
Implementation
static Product decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return Product(
id: pigeonMap['id'] as String?,
variantId: pigeonMap['variantId'] as String?,
productOptions: (pigeonMap['productOptions'] as List<Object?>?)?.cast<ProductOption?>(),
quantity: pigeonMap['quantity'] as int?,
);
}