json method
dynamic
json()
Returns JSON object if string is a valid JSON string
Implementation
dynamic json() {
if (this == null) {
return null;
}
try {
return jsonDecode(this!);
} catch (ignored) {
return null;
}
}