maybeWhen<TResult extends Object?> method
- @optionalTypeArgs
- TResult messageCreation(
- String type,
- RunStepDetailsMessageCreation messageCreation
- TResult toolCalls(
- String type,
- List<
RunStepDetailsToolCalls> toolCalls
- 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;