RunObjectResponseFormatPatterns extension
Adds pattern-matching-related methods to RunObjectResponseFormat.
Methods
-
map<
TResult extends Object?> ({required TResult mode(RunObjectResponseFormatEnumeration value), required TResult responseFormat(RunObjectResponseFormatResponseFormat value)}) → TResult -
Available on RunObjectResponseFormat, provided by the RunObjectResponseFormatPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> ({TResult? mode(RunObjectResponseFormatEnumeration value)?, TResult? responseFormat(RunObjectResponseFormatResponseFormat value)?}) → TResult? -
Available on RunObjectResponseFormat, provided by the RunObjectResponseFormatPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> ({TResult mode(RunObjectResponseFormatEnumeration value)?, TResult responseFormat(RunObjectResponseFormatResponseFormat value)?, required TResult orElse()}) → TResult -
Available on RunObjectResponseFormat, provided by the RunObjectResponseFormatPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> ({TResult mode(RunObjectResponseFormatMode value)?, TResult responseFormat(ResponseFormat value)?, required TResult orElse()}) → TResult -
Available on RunObjectResponseFormat, provided by the RunObjectResponseFormatPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> ({required TResult mode(RunObjectResponseFormatMode value), required TResult responseFormat(ResponseFormat value)}) → TResult -
Available on RunObjectResponseFormat, provided by the RunObjectResponseFormatPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> ({TResult? mode(RunObjectResponseFormatMode value)?, TResult? responseFormat(ResponseFormat value)?}) → TResult? -
Available on RunObjectResponseFormat, provided by the RunObjectResponseFormatPatterns extension
A variant ofwhen
that fallback to returningnull