TrainingJobMetadata constructor

TrainingJobMetadata({
  1. TrainingStatus? status,
  2. Timestamp? createdOn,
  3. Timestamp? lastModified,
  4. String? syncedModelId,
  5. String? id,
  6. Status? errorStatus,
  7. Timestamp? trainingStarted,
  8. Timestamp? trainingEnded,
  9. String? datasetId,
  10. String? organizationId,
  11. String? modelName,
  12. String? modelVersion,
  13. ModelType? modelType,
  14. Iterable<String>? tags,
  15. ModelFramework? modelFramework,
  16. bool? isCustomJob,
  17. String? registryItemId,
  18. String? registryItemVersion,
})

Implementation

factory TrainingJobMetadata({
  TrainingStatus? status,
  $44.Timestamp? createdOn,
  $44.Timestamp? lastModified,
  $core.String? syncedModelId,
  $core.String? id,
  $46.Status? errorStatus,
  $44.Timestamp? trainingStarted,
  $44.Timestamp? trainingEnded,
  $core.String? datasetId,
  $core.String? organizationId,
  $core.String? modelName,
  $core.String? modelVersion,
  ModelType? modelType,
  $core.Iterable<$core.String>? tags,
  ModelFramework? modelFramework,
  $core.bool? isCustomJob,
  $core.String? registryItemId,
  $core.String? registryItemVersion,
}) {
  final $result = create();
  if (status != null) {
    $result.status = status;
  }
  if (createdOn != null) {
    $result.createdOn = createdOn;
  }
  if (lastModified != null) {
    $result.lastModified = lastModified;
  }
  if (syncedModelId != null) {
    $result.syncedModelId = syncedModelId;
  }
  if (id != null) {
    $result.id = id;
  }
  if (errorStatus != null) {
    $result.errorStatus = errorStatus;
  }
  if (trainingStarted != null) {
    $result.trainingStarted = trainingStarted;
  }
  if (trainingEnded != null) {
    $result.trainingEnded = trainingEnded;
  }
  if (datasetId != null) {
    $result.datasetId = datasetId;
  }
  if (organizationId != null) {
    $result.organizationId = organizationId;
  }
  if (modelName != null) {
    $result.modelName = modelName;
  }
  if (modelVersion != null) {
    $result.modelVersion = modelVersion;
  }
  if (modelType != null) {
    $result.modelType = modelType;
  }
  if (tags != null) {
    $result.tags.addAll(tags);
  }
  if (modelFramework != null) {
    $result.modelFramework = modelFramework;
  }
  if (isCustomJob != null) {
    $result.isCustomJob = isCustomJob;
  }
  if (registryItemId != null) {
    $result.registryItemId = registryItemId;
  }
  if (registryItemVersion != null) {
    $result.registryItemVersion = registryItemVersion;
  }
  return $result;
}