Order.fromJson constructor
Implementation
Order.fromJson(Map<String, dynamic> json)
: id = json['id'],
clientOid = json['clientOid'],
profileId = json['profileId'],
productId = json['productId'],
side = json['side'],
price = json['price'],
size = json['size'],
funds = json['funds'],
specifiedFunds = json['specifiedFunds'],
type = json['type'],
timeInForce = json['timeInForce'],
postOnly = json['postOnly'],
createdAt = DateTime.parse(json['createdAt']),
expireTime = (json['expireTime'] != null)
? DateTime.parse(json['expireTime'])
: null,
doneAt =
(json['doneAt'] != null) ? DateTime.parse(json['doneAt']) : null,
doneReason = json['doneReason'],
rejectReason = json['rejectReason'],
fillFees = json['fillFees'],
filledSize = json['filledSize'],
executedValue = json['executedValue'],
status = json['status'],
settled = json['settled'],
stop = json['stop'],
stopPrice = json['stopPrice'];