Order.fromJson constructor
Creates an Order from a JSON object.
Implementation
Order.fromJson(Map<String, dynamic> json)
: orderId = json['orderId'],
productId = json['productId'],
userId = json['userId'],
orderConfiguration = json['orderConfiguration'],
side = OrderSide.fromCB(json['side']),
clientOrderId = json['clientOrderId'],
status = OrderStatus.fromCB(json['status']),
timeInForce = TimeInForce.fromCB(json['timeInForce']),
createdTime = DateTime.parse(json['createdTime']),
completionPercentage = json['completionPercentage'],
filledSize = json['filledSize'],
averageFilledPrice = json['averageFilledPrice'],
fee = json['fee'],
numberOfFills = json['numberOfFills'],
filledValue = json['filledValue'],
pendingCancel = json['pendingCancel'],
sizeInQuote = json['sizeInQuote'],
totalFees = json['totalFees'],
sizeInclusiveOfFees = json['sizeInclusiveOfFees'],
totalValueAfterFees = json['totalValueAfterFees'],
triggerStatus = TriggerStatus.fromCB(json['triggerStatus']),
orderType = OrderType.fromCB(json['orderType']),
rejectReason = RejectReason.fromCB(json['rejectReason']),
settled = json['settled'],
productType = ProductType.fromCB(json['productType']),
rejectMessage = json['rejectMessage'],
cancelMessage = json['cancelMessage'];