TradePeer constructor

TradePeer({
  1. NodeAddress? nodeAddress,
  2. PubKeyRing? pubKeyRing,
  3. String? accountId,
  4. String? paymentAccountId,
  5. String? paymentMethodId,
  6. List<int>? paymentAccountPayloadHash,
  7. List<int>? encryptedPaymentAccountPayload,
  8. List<int>? paymentAccountKey,
  9. PaymentAccountPayload? paymentAccountPayload,
  10. String? payoutAddressString,
  11. String? contractAsJson,
  12. List<int>? contractSignature,
  13. List<int>? accountAgeWitnessNonce,
  14. List<int>? accountAgeWitnessSignature,
  15. AccountAgeWitness? accountAgeWitness,
  16. Int64? currentDate,
  17. List<int>? mediatedPayoutTxSignature,
  18. PaymentSentMessage? paymentSentMessage,
  19. PaymentReceivedMessage? paymentReceivedMessage,
  20. DisputeClosedMessage? disputeClosedMessage,
  21. String? reserveTxHash,
  22. String? reserveTxHex,
  23. String? reserveTxKey,
  24. Iterable<String>? reserveTxKeyImages,
  25. String? preparedMultisigHex,
  26. String? madeMultisigHex,
  27. String? exchangedMultisigHex,
  28. String? updatedMultisigHex,
  29. bool? depositsConfirmedMessageAcked,
  30. String? depositTxHash,
  31. String? depositTxHex,
  32. String? depositTxKey,
  33. Int64? depositTxFee,
  34. Int64? securityDeposit,
  35. String? unsignedPayoutTxHex,
  36. Int64? payoutTxFee,
  37. Int64? payoutAmount,
})

Implementation

factory TradePeer({
  NodeAddress? nodeAddress,
  PubKeyRing? pubKeyRing,
  $core.String? accountId,
  $core.String? paymentAccountId,
  $core.String? paymentMethodId,
  $core.List<$core.int>? paymentAccountPayloadHash,
  $core.List<$core.int>? encryptedPaymentAccountPayload,
  $core.List<$core.int>? paymentAccountKey,
  PaymentAccountPayload? paymentAccountPayload,
  $core.String? payoutAddressString,
  $core.String? contractAsJson,
  $core.List<$core.int>? contractSignature,
  $core.List<$core.int>? accountAgeWitnessNonce,
  $core.List<$core.int>? accountAgeWitnessSignature,
  AccountAgeWitness? accountAgeWitness,
  $fixnum.Int64? currentDate,
  $core.List<$core.int>? mediatedPayoutTxSignature,
  PaymentSentMessage? paymentSentMessage,
  PaymentReceivedMessage? paymentReceivedMessage,
  DisputeClosedMessage? disputeClosedMessage,
  $core.String? reserveTxHash,
  $core.String? reserveTxHex,
  $core.String? reserveTxKey,
  $core.Iterable<$core.String>? reserveTxKeyImages,
  $core.String? preparedMultisigHex,
  $core.String? madeMultisigHex,
  $core.String? exchangedMultisigHex,
  $core.String? updatedMultisigHex,
  $core.bool? depositsConfirmedMessageAcked,
  $core.String? depositTxHash,
  $core.String? depositTxHex,
  $core.String? depositTxKey,
  $fixnum.Int64? depositTxFee,
  $fixnum.Int64? securityDeposit,
  $core.String? unsignedPayoutTxHex,
  $fixnum.Int64? payoutTxFee,
  $fixnum.Int64? payoutAmount,
}) {
  final $result = create();
  if (nodeAddress != null) {
    $result.nodeAddress = nodeAddress;
  }
  if (pubKeyRing != null) {
    $result.pubKeyRing = pubKeyRing;
  }
  if (accountId != null) {
    $result.accountId = accountId;
  }
  if (paymentAccountId != null) {
    $result.paymentAccountId = paymentAccountId;
  }
  if (paymentMethodId != null) {
    $result.paymentMethodId = paymentMethodId;
  }
  if (paymentAccountPayloadHash != null) {
    $result.paymentAccountPayloadHash = paymentAccountPayloadHash;
  }
  if (encryptedPaymentAccountPayload != null) {
    $result.encryptedPaymentAccountPayload = encryptedPaymentAccountPayload;
  }
  if (paymentAccountKey != null) {
    $result.paymentAccountKey = paymentAccountKey;
  }
  if (paymentAccountPayload != null) {
    $result.paymentAccountPayload = paymentAccountPayload;
  }
  if (payoutAddressString != null) {
    $result.payoutAddressString = payoutAddressString;
  }
  if (contractAsJson != null) {
    $result.contractAsJson = contractAsJson;
  }
  if (contractSignature != null) {
    $result.contractSignature = contractSignature;
  }
  if (accountAgeWitnessNonce != null) {
    $result.accountAgeWitnessNonce = accountAgeWitnessNonce;
  }
  if (accountAgeWitnessSignature != null) {
    $result.accountAgeWitnessSignature = accountAgeWitnessSignature;
  }
  if (accountAgeWitness != null) {
    $result.accountAgeWitness = accountAgeWitness;
  }
  if (currentDate != null) {
    $result.currentDate = currentDate;
  }
  if (mediatedPayoutTxSignature != null) {
    $result.mediatedPayoutTxSignature = mediatedPayoutTxSignature;
  }
  if (paymentSentMessage != null) {
    $result.paymentSentMessage = paymentSentMessage;
  }
  if (paymentReceivedMessage != null) {
    $result.paymentReceivedMessage = paymentReceivedMessage;
  }
  if (disputeClosedMessage != null) {
    $result.disputeClosedMessage = disputeClosedMessage;
  }
  if (reserveTxHash != null) {
    $result.reserveTxHash = reserveTxHash;
  }
  if (reserveTxHex != null) {
    $result.reserveTxHex = reserveTxHex;
  }
  if (reserveTxKey != null) {
    $result.reserveTxKey = reserveTxKey;
  }
  if (reserveTxKeyImages != null) {
    $result.reserveTxKeyImages.addAll(reserveTxKeyImages);
  }
  if (preparedMultisigHex != null) {
    $result.preparedMultisigHex = preparedMultisigHex;
  }
  if (madeMultisigHex != null) {
    $result.madeMultisigHex = madeMultisigHex;
  }
  if (exchangedMultisigHex != null) {
    $result.exchangedMultisigHex = exchangedMultisigHex;
  }
  if (updatedMultisigHex != null) {
    $result.updatedMultisigHex = updatedMultisigHex;
  }
  if (depositsConfirmedMessageAcked != null) {
    $result.depositsConfirmedMessageAcked = depositsConfirmedMessageAcked;
  }
  if (depositTxHash != null) {
    $result.depositTxHash = depositTxHash;
  }
  if (depositTxHex != null) {
    $result.depositTxHex = depositTxHex;
  }
  if (depositTxKey != null) {
    $result.depositTxKey = depositTxKey;
  }
  if (depositTxFee != null) {
    $result.depositTxFee = depositTxFee;
  }
  if (securityDeposit != null) {
    $result.securityDeposit = securityDeposit;
  }
  if (unsignedPayoutTxHex != null) {
    $result.unsignedPayoutTxHex = unsignedPayoutTxHex;
  }
  if (payoutTxFee != null) {
    $result.payoutTxFee = payoutTxFee;
  }
  if (payoutAmount != null) {
    $result.payoutAmount = payoutAmount;
  }
  return $result;
}