TradePeer constructor
TradePeer({
- NodeAddress? nodeAddress,
- PubKeyRing? pubKeyRing,
- String? accountId,
- String? paymentAccountId,
- String? paymentMethodId,
- List<
int> ? paymentAccountPayloadHash, - List<
int> ? encryptedPaymentAccountPayload, - List<
int> ? paymentAccountKey, - PaymentAccountPayload? paymentAccountPayload,
- String? payoutAddressString,
- String? contractAsJson,
- List<
int> ? contractSignature, - List<
int> ? accountAgeWitnessNonce, - List<
int> ? accountAgeWitnessSignature, - AccountAgeWitness? accountAgeWitness,
- Int64? currentDate,
- List<
int> ? mediatedPayoutTxSignature, - PaymentSentMessage? paymentSentMessage,
- PaymentReceivedMessage? paymentReceivedMessage,
- DisputeClosedMessage? disputeClosedMessage,
- String? reserveTxHash,
- String? reserveTxHex,
- String? reserveTxKey,
- Iterable<
String> ? reserveTxKeyImages, - String? preparedMultisigHex,
- String? madeMultisigHex,
- String? exchangedMultisigHex,
- String? updatedMultisigHex,
- bool? depositsConfirmedMessageAcked,
- String? depositTxHash,
- String? depositTxHex,
- String? depositTxKey,
- Int64? depositTxFee,
- Int64? securityDeposit,
- String? unsignedPayoutTxHex,
- Int64? payoutTxFee,
- 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;
}