TransferMessage constructor

TransferMessage({
  1. Int64? amount,
  2. String? asset,
  3. Int64? fee,
  4. String? feeAsset,
  5. String? to,
  6. List<int>? attachment,
})

Implementation

factory TransferMessage({
  $fixnum.Int64? amount,
  $core.String? asset,
  $fixnum.Int64? fee,
  $core.String? feeAsset,
  $core.String? to,
  $core.List<$core.int>? attachment,
}) {
  final _result = create();
  if (amount != null) {
    _result.amount = amount;
  }
  if (asset != null) {
    _result.asset = asset;
  }
  if (fee != null) {
    _result.fee = fee;
  }
  if (feeAsset != null) {
    _result.feeAsset = feeAsset;
  }
  if (to != null) {
    _result.to = to;
  }
  if (attachment != null) {
    _result.attachment = attachment;
  }
  return _result;
}