Future<String?> isJsonValid(json) async { try { var f = jsonDecode(json) as Map<String, dynamic>; return f['message']; } catch (e) { printLogs(e.toString()); return ""; } }