when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult codeInterpreter(
    1. String id,
    2. String type,
    3. @JsonKey.new(name: 'code_interpreter') RunStepDetailsToolCallsCodeObjectCodeInterpreter codeInterpreter
    ),
  2. required TResult fileSearch(
    1. String id,
    2. String type,
    3. @JsonKey.new(name: 'file_search') RunStepDetailsToolCallsFileSearch fileSearch
    ),
  3. required TResult function(
    1. String id,
    2. String type,
    3. RunStepDetailsToolCallsFunction function
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(
          String id,
          String type,
          @JsonKey(name: 'code_interpreter')
          RunStepDetailsToolCallsCodeObjectCodeInterpreter codeInterpreter)
      codeInterpreter,
  required TResult Function(
          String id,
          String type,
          @JsonKey(name: 'file_search')
          RunStepDetailsToolCallsFileSearch fileSearch)
      fileSearch,
  required TResult Function(
          String id, String type, RunStepDetailsToolCallsFunction function)
      function,
}) =>
    throw _privateConstructorUsedError;