PlanVocab class

Constructors

PlanVocab({List<String> engineFeatures = const [], Map<String, Object> keys = const {}, List<String> namespaces = const []})
Returns a new PlanVocab instance.

Properties

engineFeatures ↔ List<String>
EngineFeatures are the inference-engine capabilities a license can grant: inference, embeddings, rerank, training, vision, audio, tools.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
keys ↔ Map<String, Object>
Keys maps every entitlement key to its descriptor — key, namespace, JSON type(s), nullability, unit, enum and title, as the schema declares them.
getter/setter pair
namespaces ↔ List<String>
Namespaces are the entitlement key namespaces: the prefix before the dot in "ai.tokens_per_min".
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

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