decode static method

dynamic decode(
  1. String json
)

Implementation

static dynamic decode(String json) {
  try {
    return jsonDecode(json);
  } catch (e) {
    Log().debug("Failed to decode json string [$json]. Error is $e");
    return null;
  }
}