asArray method

CArray? asArray()

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;
  }
}