OnChainAsset constructor

OnChainAsset({
  1. String? timestamp,
  2. String? assetName,
  3. String? creatorName,
  4. String? creatorDID,
  5. String? price,
  6. String? note,
  7. String? status,
  8. String? hash,
  9. String? chain,
  10. String? url,
})

Implementation

factory OnChainAsset({
  $core.String? timestamp,
  $core.String? assetName,
  $core.String? creatorName,
  $core.String? creatorDID,
  $core.String? price,
  $core.String? note,
  $core.String? status,
  $core.String? hash,
  $core.String? chain,
  $core.String? url,
}) {
  final _result = create();
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (assetName != null) {
    _result.assetName = assetName;
  }
  if (creatorName != null) {
    _result.creatorName = creatorName;
  }
  if (creatorDID != null) {
    _result.creatorDID = creatorDID;
  }
  if (price != null) {
    _result.price = price;
  }
  if (note != null) {
    _result.note = note;
  }
  if (status != null) {
    _result.status = status;
  }
  if (hash != null) {
    _result.hash = hash;
  }
  if (chain != null) {
    _result.chain = chain;
  }
  if (url != null) {
    _result.url = url;
  }
  return _result;
}