TransferMessage constructor

TransferMessage({
  1. String? to,
  2. Int64? gasPrice,
  3. String? gasAmount,
  4. String? amount,
  5. Int64? nonce,
  6. String? context,
})

Implementation

factory TransferMessage({
  $core.String? to,
  $fixnum.Int64? gasPrice,
  $core.String? gasAmount,
  $core.String? amount,
  $fixnum.Int64? nonce,
  $core.String? context,
}) {
  final result = create();
  if (to != null) result.to = to;
  if (gasPrice != null) result.gasPrice = gasPrice;
  if (gasAmount != null) result.gasAmount = gasAmount;
  if (amount != null) result.amount = amount;
  if (nonce != null) result.nonce = nonce;
  if (context != null) result.context = context;
  return result;
}