mapOrNull<TResult extends Object?> method
- @optionalTypeArgs
- TResult? stop(
- FinishReason_Stop value
- TResult? length(
- FinishReason_Length value
- TResult? contentFilter()?,
- TResult? toolCall(
- FinishReason_ToolCall value
- TResult? other(
- FinishReason_Other value
inherited
Implementation
@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
TResult? Function(FinishReason_Stop value)? stop,
TResult? Function(FinishReason_Length value)? length,
TResult? Function(FinishReason_ContentFilter value)? contentFilter,
TResult? Function(FinishReason_ToolCall value)? toolCall,
TResult? Function(FinishReason_Other value)? other,
}) =>
throw _privateConstructorUsedError;