asArray method
Will attempt to return an array object ir null if it cannot.
Implementation
CArray? asArray() {
try {
return jsonDecode(this) as CArray?;
} catch (ex) {
return null;
}
}
Will attempt to return an array object ir null if it cannot.
CArray? asArray() {
try {
return jsonDecode(this) as CArray?;
} catch (ex) {
return null;
}
}