from

fun from(string: String): RedirectType?

Try to parse the given string to a concrete RedirectType instance.

Return

A valid RedirectType instance or null if parsing failed.