ListPromptsResult constructor
ListPromptsResult({
- ResultMetaObject? meta,
- String? nextCursor,
- required List<
Prompt> prompts, - ListPromptsResultCacheScope? cacheScope,
- String? resultType,
- int? ttlMs,
- Map<
String, Object?> ? extra,
Implementation
ListPromptsResult({
ResultMetaObject? meta,
String? nextCursor,
required List<Prompt> prompts,
ListPromptsResultCacheScope? cacheScope,
String? resultType,
int? ttlMs,
Map<String, Object?>? extra,
}) : super.build({
...?extra,
if (meta != null) '_meta': $encode(meta),
if (nextCursor != null) 'nextCursor': $encode(nextCursor),
'prompts': $encode(prompts),
if (cacheScope != null) 'cacheScope': $encode(cacheScope),
if (resultType != null) 'resultType': $encode(resultType),
if (ttlMs != null) 'ttlMs': $encode(ttlMs),
});