mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  1. TResult? stop(
    1. FinishReason_Stop value
    )?,
  2. TResult? length(
    1. FinishReason_Length value
    )?,
  3. TResult? contentFilter(
    1. FinishReason_ContentFilter value
    )?,
  4. TResult? toolCall(
    1. FinishReason_ToolCall value
    )?,
  5. TResult? other(
    1. 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;