fromString function
Helper method
Implementation
SessionTypes fromString(String str) {
if (SessionTypes.APPLE.getAsKey().contains(str)) {
return SessionTypes.APPLE;
} else if (SessionTypes.GOOGLE.getAsKey().contains(str)) {
return SessionTypes.GOOGLE;
} else if (SessionTypes.FACEBOOK.getAsKey().contains(str)) {
return SessionTypes.FACEBOOK;
}
return SessionTypes.CUSTOM;
}