asObject

Returns this field's map value, or null if it doesn't contain a map.

This method checks for both a KnownValue containing a map and for JsonObject.