fromString

Parse a firmware version string in the format "x.y.z-b" or "x.y.z+b" (e.g., "1.2.3-4" or "1.2.3+4").

Return

The DeviceFirmwareVersion object, or null if the string is invalid.

Parameters

str

The string to parse.