TransferAssetContract constructor

TransferAssetContract({
  1. String? assetName,
  2. String? ownerAddress,
  3. String? toAddress,
  4. Int64? amount,
})

Implementation

factory TransferAssetContract({
  $core.String? assetName,
  $core.String? ownerAddress,
  $core.String? toAddress,
  $fixnum.Int64? amount,
}) {
  final _result = create();
  if (assetName != null) {
    _result.assetName = assetName;
  }
  if (ownerAddress != null) {
    _result.ownerAddress = ownerAddress;
  }
  if (toAddress != null) {
    _result.toAddress = toAddress;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  return _result;
}