TradeInfo constructor

TradeInfo({
  1. OfferInfo? offer,
  2. String? tradeId,
  3. String? shortId,
  4. Int64? date,
  5. String? role,
  6. Int64? amount,
  7. Int64? makerFee,
  8. Int64? takerFee,
  9. Int64? buyerSecurityDeposit,
  10. Int64? sellerSecurityDeposit,
  11. Int64? buyerDepositTxFee,
  12. Int64? sellerDepositTxFee,
  13. Int64? buyerPayoutTxFee,
  14. Int64? sellerPayoutTxFee,
  15. Int64? buyerPayoutAmount,
  16. Int64? sellerPayoutAmount,
  17. String? price,
  18. String? arbitratorNodeAddress,
  19. String? tradePeerNodeAddress,
  20. String? state,
  21. String? phase,
  22. String? periodState,
  23. String? payoutState,
  24. String? disputeState,
  25. bool? isDepositsPublished,
  26. bool? isDepositsConfirmed,
  27. bool? isDepositsUnlocked,
  28. bool? isPaymentSent,
  29. bool? isPaymentReceived,
  30. bool? isPayoutPublished,
  31. bool? isPayoutConfirmed,
  32. bool? isPayoutUnlocked,
  33. bool? isCompleted,
  34. String? contractAsJson,
  35. ContractInfo? contract,
  36. String? tradeVolume,
  37. String? makerDepositTxId,
  38. String? takerDepositTxId,
  39. 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;
}