jsonDecodeOrNull property
dynamic
get
jsonDecodeOrNull
Decodes JSON, returns null on failure instead of throwing.
Implementation
dynamic get jsonDecodeOrNull {
try {
return jsonDecode(this);
} catch (_) {
return null;
}
}