TradeInfo constructor
TradeInfo({
- OfferInfo? offer,
- String? tradeId,
- String? shortId,
- Int64? date,
- String? role,
- Int64? amount,
- Int64? makerFee,
- Int64? takerFee,
- Int64? buyerSecurityDeposit,
- Int64? sellerSecurityDeposit,
- Int64? buyerDepositTxFee,
- Int64? sellerDepositTxFee,
- Int64? buyerPayoutTxFee,
- Int64? sellerPayoutTxFee,
- Int64? buyerPayoutAmount,
- Int64? sellerPayoutAmount,
- String? price,
- String? arbitratorNodeAddress,
- String? tradePeerNodeAddress,
- String? state,
- String? phase,
- String? periodState,
- String? payoutState,
- String? disputeState,
- bool? isDepositsPublished,
- bool? isDepositsConfirmed,
- bool? isDepositsUnlocked,
- bool? isPaymentSent,
- bool? isPaymentReceived,
- bool? isPayoutPublished,
- bool? isPayoutConfirmed,
- bool? isPayoutUnlocked,
- bool? isCompleted,
- String? contractAsJson,
- ContractInfo? contract,
- String? tradeVolume,
- String? makerDepositTxId,
- String? takerDepositTxId,
- String? payoutTxId,
Implementation
factory TradeInfo({
OfferInfo? offer,
$core.String? tradeId,
$core.String? shortId,
$fixnum.Int64? date,
$core.String? role,
$fixnum.Int64? amount,
$fixnum.Int64? makerFee,
$fixnum.Int64? takerFee,
$fixnum.Int64? buyerSecurityDeposit,
$fixnum.Int64? sellerSecurityDeposit,
$fixnum.Int64? buyerDepositTxFee,
$fixnum.Int64? sellerDepositTxFee,
$fixnum.Int64? buyerPayoutTxFee,
$fixnum.Int64? sellerPayoutTxFee,
$fixnum.Int64? buyerPayoutAmount,
$fixnum.Int64? sellerPayoutAmount,
$core.String? price,
$core.String? arbitratorNodeAddress,
$core.String? tradePeerNodeAddress,
$core.String? state,
$core.String? phase,
$core.String? periodState,
$core.String? payoutState,
$core.String? disputeState,
$core.bool? isDepositsPublished,
$core.bool? isDepositsConfirmed,
$core.bool? isDepositsUnlocked,
$core.bool? isPaymentSent,
$core.bool? isPaymentReceived,
$core.bool? isPayoutPublished,
$core.bool? isPayoutConfirmed,
$core.bool? isPayoutUnlocked,
$core.bool? isCompleted,
$core.String? contractAsJson,
ContractInfo? contract,
$core.String? tradeVolume,
$core.String? makerDepositTxId,
$core.String? takerDepositTxId,
$core.String? payoutTxId,
}) {
final $result = create();
if (offer != null) {
$result.offer = offer;
}
if (tradeId != null) {
$result.tradeId = tradeId;
}
if (shortId != null) {
$result.shortId = shortId;
}
if (date != null) {
$result.date = date;
}
if (role != null) {
$result.role = role;
}
if (amount != null) {
$result.amount = amount;
}
if (makerFee != null) {
$result.makerFee = makerFee;
}
if (takerFee != null) {
$result.takerFee = takerFee;
}
if (buyerSecurityDeposit != null) {
$result.buyerSecurityDeposit = buyerSecurityDeposit;
}
if (sellerSecurityDeposit != null) {
$result.sellerSecurityDeposit = sellerSecurityDeposit;
}
if (buyerDepositTxFee != null) {
$result.buyerDepositTxFee = buyerDepositTxFee;
}
if (sellerDepositTxFee != null) {
$result.sellerDepositTxFee = sellerDepositTxFee;
}
if (buyerPayoutTxFee != null) {
$result.buyerPayoutTxFee = buyerPayoutTxFee;
}
if (sellerPayoutTxFee != null) {
$result.sellerPayoutTxFee = sellerPayoutTxFee;
}
if (buyerPayoutAmount != null) {
$result.buyerPayoutAmount = buyerPayoutAmount;
}
if (sellerPayoutAmount != null) {
$result.sellerPayoutAmount = sellerPayoutAmount;
}
if (price != null) {
$result.price = price;
}
if (arbitratorNodeAddress != null) {
$result.arbitratorNodeAddress = arbitratorNodeAddress;
}
if (tradePeerNodeAddress != null) {
$result.tradePeerNodeAddress = tradePeerNodeAddress;
}
if (state != null) {
$result.state = state;
}
if (phase != null) {
$result.phase = phase;
}
if (periodState != null) {
$result.periodState = periodState;
}
if (payoutState != null) {
$result.payoutState = payoutState;
}
if (disputeState != null) {
$result.disputeState = disputeState;
}
if (isDepositsPublished != null) {
$result.isDepositsPublished = isDepositsPublished;
}
if (isDepositsConfirmed != null) {
$result.isDepositsConfirmed = isDepositsConfirmed;
}
if (isDepositsUnlocked != null) {
$result.isDepositsUnlocked = isDepositsUnlocked;
}
if (isPaymentSent != null) {
$result.isPaymentSent = isPaymentSent;
}
if (isPaymentReceived != null) {
$result.isPaymentReceived = isPaymentReceived;
}
if (isPayoutPublished != null) {
$result.isPayoutPublished = isPayoutPublished;
}
if (isPayoutConfirmed != null) {
$result.isPayoutConfirmed = isPayoutConfirmed;
}
if (isPayoutUnlocked != null) {
$result.isPayoutUnlocked = isPayoutUnlocked;
}
if (isCompleted != null) {
$result.isCompleted = isCompleted;
}
if (contractAsJson != null) {
$result.contractAsJson = contractAsJson;
}
if (contract != null) {
$result.contract = contract;
}
if (tradeVolume != null) {
$result.tradeVolume = tradeVolume;
}
if (makerDepositTxId != null) {
$result.makerDepositTxId = makerDepositTxId;
}
if (takerDepositTxId != null) {
$result.takerDepositTxId = takerDepositTxId;
}
if (payoutTxId != null) {
$result.payoutTxId = payoutTxId;
}
return $result;
}