fromJsonOrNull

fun fromJsonOrNull(json: String, portal: Portal): PortalInfo?

Convert a JSON string to a PortalInfo instance.

Return

the PortalInfo, or null if JSON deserialization failed

Parameters

json

the JSON string

portal

the Portal the PortalInfo belongs to