fromString

Parses a string to find the corresponding UnitFrom value.

Return

The matching UnitFrom value, or null if no match is found.

Parameters

s

The string to parse (case-insensitive).