fromString package:uuid-types

If the passed in String can be parsed as a UUID, it will be. The hyphens may not be omitted. Example:
>>> fromString "c2cc10e1-57d6-4b6f-9899-38d972112d8c"
Just c2cc10e1-57d6-4b6f-9899-38d972112d8c
Hex digits may be upper or lower-case.