mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  1. TResult? system(
    1. ChatCompletionSystemMessage value
    )?,
  2. TResult? user(
    1. ChatCompletionUserMessage value
    )?,
  3. TResult? assistant(
    1. ChatCompletionAssistantMessage value
    )?,
  4. TResult? tool(
    1. ChatCompletionToolMessage value
    )?,
  5. TResult? function(
    1. ChatCompletionFunctionMessage value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult? Function(ChatCompletionSystemMessage value)? system,
  TResult? Function(ChatCompletionUserMessage value)? user,
  TResult? Function(ChatCompletionAssistantMessage value)? assistant,
  TResult? Function(ChatCompletionToolMessage value)? tool,
  TResult? Function(ChatCompletionFunctionMessage value)? function,
}) =>
    throw _privateConstructorUsedError;