foreignMembersOf
inline fun <T : Any> foreignMembersOf(value: T, json: Json = GeoJson.jsonFormat): JsonObject(source)
Encodes value as a JsonObject for GeoJsonObject.foreignMembers.
Return
value encoded as a JsonObject.
Parameters
value
The object to encode. It must serialize to a JSON object.
json
The format used to encode. Defaults to GeoJson.jsonFormat.
Throws
if value does not encode to a JSON object.