RouteCandidate class

Constructors

RouteCandidate({String? account, bool? available, String? billing, num? headroomPct, String? host, String? kind, String? linkId, String? machine, String? plan, String? provider, String? reason})
Returns a new RouteCandidate instance.

Properties

account ↔ String?
Account is the provider-side account identifier.
getter/setter pair
available ↔ bool?
Available reports whether the candidate is routable right now.
getter/setter pair
billing ↔ String?
Billing is the cost consequence of dialing this candidate: plan (the user's own subscription) or commerce (the metered gateway path).
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
headroomPct ↔ num?
HeadroomPct is the remaining rate-limit capacity, 0..100. A link with no snapshot counts as full headroom.
getter/setter pair
host ↔ String?
Host is that machine's hostname label.
getter/setter pair
kind ↔ String?
Kind is how the account authenticates: subscription or apikey.
getter/setter pair
linkId ↔ String?
LinkID is the underlying link's opaque handle.
getter/setter pair
machine ↔ String?
Machine is the machine the account is signed in on.
getter/setter pair
plan ↔ String?
Plan is the provider plan label the account is on.
getter/setter pair
provider ↔ String?
Provider is the AI provider the candidate account belongs to.
getter/setter pair
reason ↔ String?
Reason says why the candidate is not routable, when Available is false.
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) → RouteCandidate?
Returns a new RouteCandidate instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RouteCandidate>
mapFromJson(dynamic json) → Map<String, RouteCandidate>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RouteCandidate>>

Constants

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