whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? mode(
    1. RunObjectToolChoiceMode value
    )?,
  2. TResult? tool(
    1. AssistantsNamedToolChoice value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(RunObjectToolChoiceMode value)? mode,
  TResult? Function(AssistantsNamedToolChoice value)? tool,
}) =>
    throw _privateConstructorUsedError;