ChunkingStrategyResponseParamPatterns extension
Adds pattern-matching-related methods to ChunkingStrategyResponseParam.
Methods
-
map<
TResult extends Object?> ({required TResult static(StaticChunkingStrategyResponseParam value), required TResult other(OtherChunkingStrategyResponseParam value)}) → TResult -
Available on ChunkingStrategyResponseParam, provided by the ChunkingStrategyResponseParamPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> ({TResult? static(StaticChunkingStrategyResponseParam value)?, TResult? other(OtherChunkingStrategyResponseParam value)?}) → TResult? -
Available on ChunkingStrategyResponseParam, provided by the ChunkingStrategyResponseParamPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> ({TResult static(StaticChunkingStrategyResponseParam value)?, TResult other(OtherChunkingStrategyResponseParam value)?, required TResult orElse()}) → TResult -
Available on ChunkingStrategyResponseParam, provided by the ChunkingStrategyResponseParamPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> ({TResult static(String type, StaticChunkingStrategy static)?, TResult other(String type)?, required TResult orElse()}) → TResult -
Available on ChunkingStrategyResponseParam, provided by the ChunkingStrategyResponseParamPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> ({required TResult static(String type, StaticChunkingStrategy static), required TResult other(String type)}) → TResult -
Available on ChunkingStrategyResponseParam, provided by the ChunkingStrategyResponseParamPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> ({TResult? static(String type, StaticChunkingStrategy static)?, TResult? other(String type)?}) → TResult? -
Available on ChunkingStrategyResponseParam, provided by the ChunkingStrategyResponseParamPatterns extension
A variant ofwhen
that fallback to returningnull