toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() {
  final productId = this.productId;
  final quantity = this.quantity;
  final unitPrice = this.unitPrice;
  return {
    'productId': ?productId,
    'quantity': ?quantity,
    'unitPrice': ?unitPrice,
  };
}