PromptMeta class

Constructors

PromptMeta({List<String> labels = const [], String? lastUpdatedAt, String? name, List<String> tags = const [], String? type, List<int> versions = const []})
Returns a new PromptMeta instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
labels ↔ List<String>
Labels is the creator's free-form taxonomy, stored as given after trimming and de-duplication. Always present, [] when none — never null.
getter/setter pair
lastUpdatedAt ↔ String?
LastUpdatedAt is when the newest version was appended, RFC 3339 UTC. Empty only if the record carries no timestamp at all.
getter/setter pair
name ↔ String?
Name is the prompt's org-unique handle and the URL segment it is fetched by: GET /v1/prompt/
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags ↔ List<String>
Tags is the second free-form taxonomy under the same rules as Labels. Nothing in this service interprets either; they are yours to organize by.
getter/setter pair
type ↔ String?
Type labels the template's kind, "text" unless the creator said otherwise. It is the CURRENT version's type; earlier versions may carry a different one.
getter/setter pair
versions ↔ List<int>
Versions lists every version NUMBER this prompt has, newest first, capped at the last 100. The highest is the current one. (On a metrics row the same key is a count, not a list.)
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) → PromptMeta?
Returns a new PromptMeta instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PromptMeta>
mapFromJson(dynamic json) → Map<String, PromptMeta>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PromptMeta>>

Constants

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