safeJsonDecode static method

dynamic safeJsonDecode(
  1. String jsonString
)

Decode your jsonString value or null

Implementation

static dynamic safeJsonDecode(String jsonString) {
  try {
    return jsonDecode(jsonString);
  } catch (e) {
    LogItems.jsonDecodeError();
    return null;
  }
}