saveEvent static method
Implementation
static Future<bool> saveEvent(ParseUser user, String action) async {
var event = ParseObject(classname)
..set('action', action)
..set('owner', user);
ParseResponse response = await event.save();
if (response.success) {
return true;
} else {
debugPrint("Error for saving with error ${response.error}");
return false;
}
}