toJson method
Implementation
@override
Map<String, Object?> toJson() => {
if (label != null) "label": encodeValue(label),
if (about != null) "about": encodeValue(about),
"product_id": encodeValue(productId),
"amount": encodeValue(amount),
};