getEventFromInt function
Implementation
FriendEvent? getEventFromInt(int val) {
switch (val) {
case 1:
return FriendEvent.addFriendDirect;
case 2:
return FriendEvent.addFriendVerifyRequest;
case 3:
return FriendEvent.agreeAddFriend;
case 4:
return FriendEvent.rejectAddFriend;
}
return null;
}