fromString

Parses a string to find the corresponding UnitTo value.

Return

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

Parameters

s

The string to parse (case-insensitive).