fromString static method
The fromString method is a static method of the SyneriseSource enum. It takes a String
parameter called string and returns a SyneriseSource value based on the input string.
Implementation
static SyneriseSource fromString(String string) {
if (string == 'SIMPLE_PUSH') {
return SyneriseSource.simplePush;
} else if (string == 'BANNER') {
return SyneriseSource.banner;
} else if (string == 'WALKTHROUGH') {
return SyneriseSource.walkthrough;
} else if (string == 'IN_APP_MESSAGE') {
return SyneriseSource.inAppMessage;
} else {
return SyneriseSource.notSpecified;
}
}