TokenTransfer constructor

TokenTransfer({
  1. String? tokenMintAddress,
  2. String? senderTokenAddress,
  3. String? recipientTokenAddress,
  4. Int64? amount,
  5. int? decimals,
  6. String? memo,
  7. Iterable<String>? references,
})

Implementation

factory TokenTransfer({
  $core.String? tokenMintAddress,
  $core.String? senderTokenAddress,
  $core.String? recipientTokenAddress,
  $fixnum.Int64? amount,
  $core.int? decimals,
  $core.String? memo,
  $core.Iterable<$core.String>? references,
}) {
  final _result = create();
  if (tokenMintAddress != null) {
    _result.tokenMintAddress = tokenMintAddress;
  }
  if (senderTokenAddress != null) {
    _result.senderTokenAddress = senderTokenAddress;
  }
  if (recipientTokenAddress != null) {
    _result.recipientTokenAddress = recipientTokenAddress;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  if (decimals != null) {
    _result.decimals = decimals;
  }
  if (memo != null) {
    _result.memo = memo;
  }
  if (references != null) {
    _result.references.addAll(references);
  }
  return _result;
}