ContractInfo constructor

ContractInfo({
  1. String? buyerNodeAddress,
  2. String? sellerNodeAddress,
  3. String? arbitratorNodeAddress,
  4. bool? isBuyerMakerAndSellerTaker,
  5. String? makerAccountId,
  6. String? takerAccountId,
  7. PaymentAccountPayload? makerPaymentAccountPayload,
  8. PaymentAccountPayload? takerPaymentAccountPayload,
  9. String? makerPayoutAddressString,
  10. String? takerPayoutAddressString,
  11. Int64? lockTime,
})

Implementation

factory ContractInfo({
  $core.String? buyerNodeAddress,
  $core.String? sellerNodeAddress,
  $core.String? arbitratorNodeAddress,
  $core.bool? isBuyerMakerAndSellerTaker,
  $core.String? makerAccountId,
  $core.String? takerAccountId,
  $1.PaymentAccountPayload? makerPaymentAccountPayload,
  $1.PaymentAccountPayload? takerPaymentAccountPayload,
  $core.String? makerPayoutAddressString,
  $core.String? takerPayoutAddressString,
  $fixnum.Int64? lockTime,
}) {
  final $result = create();
  if (buyerNodeAddress != null) {
    $result.buyerNodeAddress = buyerNodeAddress;
  }
  if (sellerNodeAddress != null) {
    $result.sellerNodeAddress = sellerNodeAddress;
  }
  if (arbitratorNodeAddress != null) {
    $result.arbitratorNodeAddress = arbitratorNodeAddress;
  }
  if (isBuyerMakerAndSellerTaker != null) {
    $result.isBuyerMakerAndSellerTaker = isBuyerMakerAndSellerTaker;
  }
  if (makerAccountId != null) {
    $result.makerAccountId = makerAccountId;
  }
  if (takerAccountId != null) {
    $result.takerAccountId = takerAccountId;
  }
  if (makerPaymentAccountPayload != null) {
    $result.makerPaymentAccountPayload = makerPaymentAccountPayload;
  }
  if (takerPaymentAccountPayload != null) {
    $result.takerPaymentAccountPayload = takerPaymentAccountPayload;
  }
  if (makerPayoutAddressString != null) {
    $result.makerPayoutAddressString = makerPayoutAddressString;
  }
  if (takerPayoutAddressString != null) {
    $result.takerPayoutAddressString = takerPayoutAddressString;
  }
  if (lockTime != null) {
    $result.lockTime = lockTime;
  }
  return $result;
}