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.amendmentId != null) {
    json[r'amendmentId'] = this.amendmentId;
  } else {
    json[r'amendmentId'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.actionRequired != null) {
    json[r'actionRequired'] = this.actionRequired;
  } else {
    json[r'actionRequired'] = null;
  }
  if (this.amountToPay != null) {
    json[r'amountToPay'] = this.amountToPay;
  } else {
    json[r'amountToPay'] = null;
  }
  if (this.amountToRefund != null) {
    json[r'amountToRefund'] = this.amountToRefund;
  } else {
    json[r'amountToRefund'] = null;
  }
  if (this.currencyCode != null) {
    json[r'currencyCode'] = this.currencyCode;
  } else {
    json[r'currencyCode'] = null;
  }
  if (this.wallet != null) {
    json[r'wallet'] = this.wallet;
  } else {
    json[r'wallet'] = null;
  }
  if (this.reason != null) {
    json[r'reason'] = this.reason;
  } else {
    json[r'reason'] = null;
  }
  if (this.quoteRevision != null) {
    json[r'quoteRevision'] = this.quoteRevision;
  } else {
    json[r'quoteRevision'] = null;
  }
  return json;
}