pub fn has_type(object: &Map<String, Value>, expected: &str) -> bool
Whether object’s type is expected, alone or among several.
object
type
expected