PromptReq class

Constructors

PromptReq({List<String> labels = const [], String? name, String? prompt, List<String> tags = const [], String? type})
Returns a new PromptReq instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
labels ↔ List<String>
Labels is free-form taxonomy, each up to 64 characters, capped at 32 entries.
getter/setter pair
name ↔ String?
Name is the org-unique handle AND the URL segment the prompt is addressed by: 1-64 characters matching ^A-Za-z0-9._-*$. "metrics", "new" and "catalog" are reserved. A name that already exists appends a new version.
getter/setter pair
prompt ↔ String?
Prompt is the template body, capped at 64 KiB. It holds template text only — never a secret.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags ↔ List<String>
Tags is free-form taxonomy under the same bounds as Labels.
getter/setter pair
type ↔ String?
Type labels the template's kind; defaults to "text".
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → PromptReq?
Returns a new PromptReq instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PromptReq>
mapFromJson(dynamic json) → Map<String, PromptReq>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PromptReq>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.