ServiceEndpoint
Type-safe model for DidService.serviceEndpoint.
The W3C DID Core spec allows serviceEndpoint to be:
A string (URL)
An object (Map
) An array of strings/objects
This sealed type captures those variants while ServiceEndpointSerializer guarantees the on-the-wire JSON stays byte-compatible (a bare string stays a string, an object stays an object, and an array stays an array).
Inheritors
Types
Functions
Link copied to clipboard
Converts a ServiceEndpoint back to a raw value (String, Map, or List).