fromMap method Null safety

JSONObject? fromMap(
  1. Map<String, dynamic> map
)

Implementation

static JSONObject? fromMap(Map<String, dynamic> map) {
  try {
    return fromMap(map);
  } catch (Exception) {
    return null;
  }
}