toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (customerReturnReason != null)
        'customerReturnReason': customerReturnReason!,
      if (itemId != null) 'itemId': itemId!,
      if (merchantRejectionReason != null)
        'merchantRejectionReason': merchantRejectionReason!,
      if (merchantReturnReason != null)
        'merchantReturnReason': merchantReturnReason!,
      if (product != null) 'product': product!,
      if (refundableAmount != null) 'refundableAmount': refundableAmount!,
      if (returnItemId != null) 'returnItemId': returnItemId!,
      if (returnShipmentIds != null) 'returnShipmentIds': returnShipmentIds!,
      if (shipmentGroupId != null) 'shipmentGroupId': shipmentGroupId!,
      if (shipmentUnitId != null) 'shipmentUnitId': shipmentUnitId!,
      if (state != null) 'state': state!,
    };