serviceEndpointFromJsonElement

fun serviceEndpointFromJsonElement(element: JsonElement?): ServiceEndpoint?

Parses a JsonElement into a ServiceEndpoint, or returns null for null/unsupported shapes. Object values are decoded into native Kotlin values (String/Long/Double/Boolean/Map/List) so the representation matches what the previous untyped parser produced.