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;
}