CreateTargetRequest constructor

CreateTargetRequest({
  1. String? name,
  2. SetRESTWebhook? restWebhook,
  3. SetRESTRequestResponse? restRequestResponse,
  4. Duration? timeout,
  5. bool? isAsync,
  6. bool? interruptOnError,
})

Implementation

factory CreateTargetRequest({
  $core.String? name,
  $4.SetRESTWebhook? restWebhook,
  $4.SetRESTRequestResponse? restRequestResponse,
  $2.Duration? timeout,
  $core.bool? isAsync,
  $core.bool? interruptOnError,
}) {
  final $result = create();
  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;
}