EnrollReq class

Constructors

EnrollReq({String? account, String? host, String? kind, String? machine, String? os, String? plan, String? provider, Object? usage})
Returns a new EnrollReq instance.

Properties

account ↔ String?
Account is the provider-side account identifier.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
host ↔ String?
Host is the machine's human hostname label.
getter/setter pair
kind ↔ String?
Kind decides how the account's inference BILLS and defaults to subscription: a subscription account bills the user's own monthly plan and is metered here for visibility only, while an apikey account bills through commerce on the gateway path.
getter/setter pair
machine ↔ String?
Machine is the stable machine identifier. Required, length-bounded.
getter/setter pair
os ↔ String?
OS is the machine's operating system label.
getter/setter pair
plan ↔ String?
Plan is the provider plan label (e.g. "Claude Max").
getter/setter pair
provider ↔ String?
Provider is the AI provider the account belongs to. Required, length-bounded.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
usage ↔ Object?
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) → EnrollReq?
Returns a new EnrollReq instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<EnrollReq>
mapFromJson(dynamic json) → Map<String, EnrollReq>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<EnrollReq>>

Constants

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