Order constructor
Order({
- String? key,
- String? id,
- String? rev,
- String? uuid,
- String? createdAt,
- String? updatedAt,
- String? expiryAt,
- String? merchantId,
- String? userId,
- String? lpId,
- CurrencyPair? pair,
- double? fiat,
- double? price,
- Int64? token,
- String? idLocked,
- Int64? timestamp,
- OrderType? orderType,
- OrderStatus? status,
- Iterable<
State> ? states, - BankDetail? lpBank,
- BankDetail? userBank,
- String? reffNumber,
- String? qrCode,
- String? signature,
- double? vwap,
- Int64? balance,
- String? lpAdminId,
- 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;
}