int getCount(Map<String, String> data) { int count = 0; if (data['COUNT'] != null) count = int.parse(data['COUNT'].toString()); return count; }