toVersion

Extension function to convert a string to a Version instance.

Receiver

The string to convert to a version

Return

A new Version instance wrapping the string

Example:

val version = "2.1.3".toVersion()