maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult codeInterpreter(
    1. int index,
    2. String? id,
    3. String type,
    4. RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? codeInterpreter,
    )?,
  2. TResult fileSearch(
    1. int index,
    2. String? id,
    3. String type,
    4. Map<String, dynamic> fileSearch,
    )?,
  3. TResult function(
    1. int index,
    2. String? id,
    3. String type,
    4. RunStepDeltaStepDetailsToolCallsFunction? function,
    )?,
  4. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(
          int index,
          @JsonKey(includeIfNull: false) String? id,
          String type,
          @JsonKey(name: 'code_interpreter', includeIfNull: false)
          RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter?
              codeInterpreter)?
      codeInterpreter,
  TResult Function(
          int index,
          @JsonKey(includeIfNull: false) String? id,
          String type,
          @JsonKey(name: 'file_search') Map<String, dynamic> fileSearch)?
      fileSearch,
  TResult Function(
          int index,
          @JsonKey(includeIfNull: false) String? id,
          String type,
          @JsonKey(includeIfNull: false)
          RunStepDeltaStepDetailsToolCallsFunction? function)?
      function,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;