Task constructor

Task({
  1. String? name,
  2. String? uid,
  3. Timestamp? createTime,
  4. Timestamp? updateTime,
  5. String? description,
  6. String? displayName,
  7. State? state,
  8. Map<String, String>? labels,
  9. Task_TriggerSpec? triggerSpec,
  10. Task_ExecutionSpec? executionSpec,
  11. Task_ExecutionStatus? executionStatus,
  12. Task_SparkTaskConfig? spark,
  13. Task_NotebookTaskConfig? notebook,
})

Implementation

factory Task({
  $core.String? name,
  $core.String? uid,
  $2.Timestamp? createTime,
  $2.Timestamp? updateTime,
  $core.String? description,
  $core.String? displayName,
  State? state,
  $core.Map<$core.String, $core.String>? labels,
  Task_TriggerSpec? triggerSpec,
  Task_ExecutionSpec? executionSpec,
  Task_ExecutionStatus? executionStatus,
  Task_SparkTaskConfig? spark,
  Task_NotebookTaskConfig? notebook,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (uid != null) {
    $result.uid = uid;
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  if (description != null) {
    $result.description = description;
  }
  if (displayName != null) {
    $result.displayName = displayName;
  }
  if (state != null) {
    $result.state = state;
  }
  if (labels != null) {
    $result.labels.addAll(labels);
  }
  if (triggerSpec != null) {
    $result.triggerSpec = triggerSpec;
  }
  if (executionSpec != null) {
    $result.executionSpec = executionSpec;
  }
  if (executionStatus != null) {
    $result.executionStatus = executionStatus;
  }
  if (spark != null) {
    $result.spark = spark;
  }
  if (notebook != null) {
    $result.notebook = notebook;
  }
  return $result;
}