maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult messageCreation(
    1. String type,
    2. RunStepDetailsMessageCreation messageCreation
    )?,
  2. TResult toolCalls(
    1. String type,
    2. List<RunStepDetailsToolCalls> toolCalls
    )?,
  3. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(
          String type,
          @JsonKey(name: 'message_creation')
          RunStepDetailsMessageCreation messageCreation)?
      messageCreation,
  TResult Function(
          String type,
          @JsonKey(name: 'tool_calls')
          List<RunStepDetailsToolCalls> toolCalls)?
      toolCalls,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;