ServiceInstance class
ServiceInstance
Constructors
-
ServiceInstance({required String instanceId, required String did, required ServiceInstanceServiceType serviceType, String? label, String? publicUrl, required ServiceInstanceStatus status, required List<
String> servedDomains, List<String> ? enabledMethods, List<String> ? advertisedServices, String? servicesCheckedAt, TransportObservation? lastInbound, TransportObservation? lastOutbound, String? lastHealthCheck, required String registeredAt, Ext? ext}) -
const
-
ServiceInstance.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
-
advertisedServices
→ List<
String> ? -
service\[\].typevalues of the instance's DID document when the control plane last resolved it. Display only: nothing is routed on it. Absent when the document has not been resolved.final - did → String
-
The instance's own DID — the identity its signed documents are verified against and
the one the control plane addresses.
final
-
enabledMethods
→ List<
String> ? -
DID methods the instance can host (e.g.
webvh,web,webs), as it declared at registration.final - ext → Ext?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- instanceId → String
-
Stable identifier the control plane uses for this instance. SHOULD be derived from
the instance's DID so it survives restarts.
final
- label → String?
-
Operator-chosen display label. Untrusted free text.
final
- lastHealthCheck → String?
-
When the instance last answered a health probe. Absent when it never has.
final
- lastInbound → TransportObservation?
-
The last document the control plane received from this instance. Absent when it has
received none.
final
- lastOutbound → TransportObservation?
-
The last document the control plane delivered to this instance. Absent when it has
delivered none.
final
- publicUrl → String?
-
The instance's public base URL, where it serves DID resolution. Absent when the
instance registered without one.
final
- registeredAt → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
servedDomains
→ List<
String> -
Hosting domains the instance has acknowledged serving. Always present — empty for
an instance that serves none, which includes every
witnessandwatcher.final - servicesCheckedAt → String?
-
When
advertisedServiceswas last resolved. Absent with it.final - serviceType → ServiceInstanceServiceType
-
server— a hosting server (edge) that resolves DIDs the control plane syncs to it.witness— a did:webvh witness.watcher— a did:webvh watcher that mirrors logs.final - status → ServiceInstanceStatus
-
The control plane's current verdict, from the instance's last answered health
probe.
degraded— answered late;unreachable— has not answered within the control plane's configured window.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited