asObject method
Will attempt to return Map<String, dynamic> object or null if it cannot.
Implementation
CObject? asObject() {
try {
return jsonDecode(this) as CObject?;
} catch (ex) {
return null;
}
}
Will attempt to return Map<String, dynamic> object or null if it cannot.
CObject? asObject() {
try {
return jsonDecode(this) as CObject?;
} catch (ex) {
return null;
}
}