mapOrNull<TResult extends Object?> method
- @optionalTypeArgs
- TResult? system()?,
- TResult? user()?,
- TResult? assistant()?,
- TResult? tool()?,
- TResult? function()?,
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;