toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.orderId != null) {
    json[r'orderId'] = this.orderId;
  } else {
    json[r'orderId'] = null;
  }
  if (this.orderItemId != null) {
    json[r'orderItemId'] = this.orderItemId;
  } else {
    json[r'orderItemId'] = null;
  }
  if (this.publicId != null) {
    json[r'publicId'] = this.publicId;
  } else {
    json[r'publicId'] = null;
  }
  if (this.refundId != null) {
    json[r'refundId'] = this.refundId;
  } else {
    json[r'refundId'] = null;
  }
  if (this.refundAmount != null) {
    json[r'refundAmount'] = this.refundAmount;
  } else {
    json[r'refundAmount'] = null;
  }
  if (this.currencyCode != null) {
    json[r'currencyCode'] = this.currencyCode;
  } else {
    json[r'currencyCode'] = null;
  }
  if (this.paymentMethod != null) {
    json[r'paymentMethod'] = this.paymentMethod;
  } else {
    json[r'paymentMethod'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.reason != null) {
    json[r'reason'] = this.reason;
  } else {
    json[r'reason'] = null;
  }
  return json;
}