Action constructor

Action({
  1. String? id,
  2. ObjectDetails? details,
  3. ActionState? state,
  4. String? name,
  5. String? script,
  6. Duration? timeout,
  7. bool? allowedToFail,
})

Implementation

factory Action({
  $core.String? id,
  $8.ObjectDetails? details,
  ActionState? state,
  $core.String? name,
  $core.String? script,
  $7.Duration? timeout,
  $core.bool? allowedToFail,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (details != null) {
    $result.details = details;
  }
  if (state != null) {
    $result.state = state;
  }
  if (name != null) {
    $result.name = name;
  }
  if (script != null) {
    $result.script = script;
  }
  if (timeout != null) {
    $result.timeout = timeout;
  }
  if (allowedToFail != null) {
    $result.allowedToFail = allowedToFail;
  }
  return $result;
}