Order constructor

Order({
  1. String? key,
  2. String? id,
  3. String? rev,
  4. String? uuid,
  5. String? createdAt,
  6. String? updatedAt,
  7. String? expiryAt,
  8. String? merchantId,
  9. String? userId,
  10. String? lpId,
  11. CurrencyPair? pair,
  12. double? fiat,
  13. double? price,
  14. Int64? token,
  15. String? idLocked,
  16. Int64? timestamp,
  17. OrderType? orderType,
  18. OrderStatus? status,
  19. Iterable<State>? states,
  20. BankDetail? lpBank,
  21. BankDetail? userBank,
  22. String? reffNumber,
  23. String? qrCode,
  24. String? signature,
  25. double? vwap,
  26. Int64? balance,
  27. String? lpAdminId,
  28. Int64? profitLoss,
})

Implementation

factory Order({
  $core.String? key,
  $core.String? id,
  $core.String? rev,
  $core.String? uuid,
  $core.String? createdAt,
  $core.String? updatedAt,
  $core.String? expiryAt,
  $core.String? merchantId,
  $core.String? userId,
  $core.String? lpId,
  CurrencyPair? pair,
  $core.double? fiat,
  $core.double? price,
  $fixnum.Int64? token,
  $core.String? idLocked,
  $fixnum.Int64? timestamp,
  OrderType? orderType,
  OrderStatus? status,
  $core.Iterable<State>? states,
  $0.BankDetail? lpBank,
  $0.BankDetail? userBank,
  $core.String? reffNumber,
  $core.String? qrCode,
  $core.String? signature,
  $core.double? vwap,
  $fixnum.Int64? balance,
  $core.String? lpAdminId,
  $fixnum.Int64? profitLoss,
}) {
  final $result = create();
  if (key != null) {
    $result.key = key;
  }
  if (id != null) {
    $result.id = id;
  }
  if (rev != null) {
    $result.rev = rev;
  }
  if (uuid != null) {
    $result.uuid = uuid;
  }
  if (createdAt != null) {
    $result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    $result.updatedAt = updatedAt;
  }
  if (expiryAt != null) {
    $result.expiryAt = expiryAt;
  }
  if (merchantId != null) {
    $result.merchantId = merchantId;
  }
  if (userId != null) {
    $result.userId = userId;
  }
  if (lpId != null) {
    $result.lpId = lpId;
  }
  if (pair != null) {
    $result.pair = pair;
  }
  if (fiat != null) {
    $result.fiat = fiat;
  }
  if (price != null) {
    $result.price = price;
  }
  if (token != null) {
    $result.token = token;
  }
  if (idLocked != null) {
    $result.idLocked = idLocked;
  }
  if (timestamp != null) {
    $result.timestamp = timestamp;
  }
  if (orderType != null) {
    $result.orderType = orderType;
  }
  if (status != null) {
    $result.status = status;
  }
  if (states != null) {
    $result.states.addAll(states);
  }
  if (lpBank != null) {
    $result.lpBank = lpBank;
  }
  if (userBank != null) {
    $result.userBank = userBank;
  }
  if (reffNumber != null) {
    $result.reffNumber = reffNumber;
  }
  if (qrCode != null) {
    $result.qrCode = qrCode;
  }
  if (signature != null) {
    $result.signature = signature;
  }
  if (vwap != null) {
    $result.vwap = vwap;
  }
  if (balance != null) {
    $result.balance = balance;
  }
  if (lpAdminId != null) {
    $result.lpAdminId = lpAdminId;
  }
  if (profitLoss != null) {
    $result.profitLoss = profitLoss;
  }
  return $result;
}