@override Map<String, Object?> toJson() => { "id": id, "type": type, "quantity": quantity, "product": encodeValue(product), };