optJSONObject method
Returns the value mapped by {@code name} if it exists and is a {@code Map}, or null otherwise.
Implementation
Map<String, dynamic>? optJSONObject(String name) {
dynamic object = opt(name);
return object is Map<String, dynamic> ? object : null;
}