Action constructor
Action({
- String? id,
- ObjectDetails? details,
- ActionState? state,
- String? name,
- String? script,
- Duration? timeout,
- 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;
}