ServiceEndpointSerializer
KSerializer for ServiceEndpoint that preserves the exact W3C DID Core wire format:
ServiceEndpoint.Url ⇄ JSON string
ServiceEndpoint.ObjectEndpoint ⇄ JSON object
ServiceEndpoint.ArrayEndpoint ⇄ JSON array
Scalar/object conversions intentionally mirror serviceEndpointFromJsonElement / serviceEndpointToJsonElement so round-trips through DidService are byte-compatible with the legacy Any-typed representation.