fromString

fun fromString(gender: String): Gender

Returns the corresponding gender in this enum given a string resembling it.

Parameters

gender
the gender as a string.