safeJsonDecode static method
Decode your jsonString value or null
Implementation
static dynamic safeJsonDecode(String jsonString) {
try {
return jsonDecode(jsonString);
} catch (e) {
LogItems.jsonDecodeError();
return null;
}
}
Decode your jsonString value or null
static dynamic safeJsonDecode(String jsonString) {
try {
return jsonDecode(jsonString);
} catch (e) {
LogItems.jsonDecodeError();
return null;
}
}