Asset constructor

Asset({
  1. String? name,
  2. String? displayName,
  3. String? uid,
  4. Timestamp? createTime,
  5. Timestamp? updateTime,
  6. Map<String, String>? labels,
  7. String? description,
  8. State? state,
  9. Asset_ResourceSpec? resourceSpec,
  10. Asset_ResourceStatus? resourceStatus,
  11. Asset_SecurityStatus? securityStatus,
  12. Asset_DiscoverySpec? discoverySpec,
  13. Asset_DiscoveryStatus? discoveryStatus,
})

Implementation

factory Asset({
  $core.String? name,
  $core.String? displayName,
  $core.String? uid,
  $2.Timestamp? createTime,
  $2.Timestamp? updateTime,
  $core.Map<$core.String, $core.String>? labels,
  $core.String? description,
  State? state,
  Asset_ResourceSpec? resourceSpec,
  Asset_ResourceStatus? resourceStatus,
  Asset_SecurityStatus? securityStatus,
  Asset_DiscoverySpec? discoverySpec,
  Asset_DiscoveryStatus? discoveryStatus,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (displayName != null) {
    $result.displayName = displayName;
  }
  if (uid != null) {
    $result.uid = uid;
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  if (labels != null) {
    $result.labels.addAll(labels);
  }
  if (description != null) {
    $result.description = description;
  }
  if (state != null) {
    $result.state = state;
  }
  if (resourceSpec != null) {
    $result.resourceSpec = resourceSpec;
  }
  if (resourceStatus != null) {
    $result.resourceStatus = resourceStatus;
  }
  if (securityStatus != null) {
    $result.securityStatus = securityStatus;
  }
  if (discoverySpec != null) {
    $result.discoverySpec = discoverySpec;
  }
  if (discoveryStatus != null) {
    $result.discoveryStatus = discoveryStatus;
  }
  return $result;
}