Target constructor

Target({
  1. String? targetId,
  2. Details? details,
  3. String? name,
  4. SetRESTWebhook? restWebhook,
  5. SetRESTRequestResponse? restRequestResponse,
  6. Duration? timeout,
  7. bool? isAsync,
  8. bool? interruptOnError,
})

Implementation

factory Target({
  $core.String? targetId,
  $1.Details? details,
  $core.String? name,
  SetRESTWebhook? restWebhook,
  SetRESTRequestResponse? restRequestResponse,
  $2.Duration? timeout,
  $core.bool? isAsync,
  $core.bool? interruptOnError,
}) {
  final $result = create();
  if (targetId != null) {
    $result.targetId = targetId;
  }
  if (details != null) {
    $result.details = details;
  }
  if (name != null) {
    $result.name = name;
  }
  if (restWebhook != null) {
    $result.restWebhook = restWebhook;
  }
  if (restRequestResponse != null) {
    $result.restRequestResponse = restRequestResponse;
  }
  if (timeout != null) {
    $result.timeout = timeout;
  }
  if (isAsync != null) {
    $result.isAsync = isAsync;
  }
  if (interruptOnError != null) {
    $result.interruptOnError = interruptOnError;
  }
  return $result;
}