toJson method
Implementation
Map<String, dynamic> toJson() => {
'orderId': orderId,
'productId': productId,
'userId': userId,
'orderConfiguration': orderConfiguration,
'side': side,
'clientOrderId': clientOrderId,
'status': status,
'timeInForce': timeInForce,
'createdTime': createdTime?.toIso8601String(),
'completionPercentage': completionPercentage,
'filledSize': filledSize,
'averageFilledPrice': averageFilledPrice,
'fee': fee,
'numberOfFills': numberOfFills,
'filledValue': filledValue,
'pendingCancel': pendingCancel,
'sizeInQuote': sizeInQuote,
'totalFees': totalFees,
'sizeInclusiveOfFees': sizeInclusiveOfFees,
'totalValueAfterFees': totalValueAfterFees,
'triggerStatus': triggerStatus,
'orderType': orderType,
'rejectReason': rejectReason,
'settled': settled,
'productType': productType,
'rejectMessage': rejectMessage,
'cancelMessage': cancelMessage
};