of

fun of(value: Any): ServiceEndpoint

Builds a ServiceEndpoint from a raw value (String, Map, or List).

This is the factory construction sites should use when bridging from untyped input (e.g. JSON conversion results, DSL builders, or interop payloads).

Throws

if value (or any array item) is not a String, Map, or List