ParseGuid static method
Implementation
static Uuid ParseGuid(String value) {
final match = _guidPattern.firstMatch(value.trim());
if (match == null) {
throw FormatException("'$value' is not a valid GUID");
}
return Uuid(
[
match.group(1),
match.group(2),
match.group(3),
match.group(4),
match.group(5),
].join("-").toLowerCase(),
);
}