toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'id': id,
      'clientOid': clientOid,
      'profileId': profileId,
      'productId': productId,
      'side': side,
      'price': price,
      'size': size,
      'funds': funds,
      'specifiedFunds': specifiedFunds,
      'type': type,
      'timeInForce': timeInForce,
      'postOnly': postOnly,
      'createdAt': createdAt?.toIso8601String(),
      'expireTime': expireTime?.toIso8601String(),
      'doneAt': doneAt?.toIso8601String(),
      'doneReason': doneReason,
      'rejectReason': rejectReason,
      'fillFees': fillFees,
      'filledSize': filledSize,
      'executedValue': executedValue,
      'status': status,
      'settled': settled,
      'stop': stop,
      'stopPrice': stopPrice
    };