Target constructor

Target({
  1. String? id,
  2. Timestamp? creationDate,
  3. Timestamp? changeDate,
  4. String? name,
  5. RESTWebhook? restWebhook,
  6. RESTCall? restCall,
  7. RESTAsync? restAsync,
  8. Duration? timeout,
  9. String? endpoint,
  10. String? signingKey,
  11. PayloadType? payloadType,
})

Implementation

factory Target({
  $core.String? id,
  $0.Timestamp? creationDate,
  $0.Timestamp? changeDate,
  $core.String? name,
  RESTWebhook? restWebhook,
  RESTCall? restCall,
  RESTAsync? restAsync,
  $1.Duration? timeout,
  $core.String? endpoint,
  $core.String? signingKey,
  PayloadType? payloadType,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (creationDate != null) result.creationDate = creationDate;
  if (changeDate != null) result.changeDate = changeDate;
  if (name != null) result.name = name;
  if (restWebhook != null) result.restWebhook = restWebhook;
  if (restCall != null) result.restCall = restCall;
  if (restAsync != null) result.restAsync = restAsync;
  if (timeout != null) result.timeout = timeout;
  if (endpoint != null) result.endpoint = endpoint;
  if (signingKey != null) result.signingKey = signingKey;
  if (payloadType != null) result.payloadType = payloadType;
  return result;
}