decode

fun decode(data: Any?): LocalitiesTypes?

Returns a valid LocalitiesTypes for data, null otherwise.