This allows you to then reference UserId instead of UUID and to have methods that
take a strongly typed UserId instead of an UUID (which could represent something other
than a User id)
Note: The class that extends this should also extends AnyVal so that serialization
will just pass through to the underlying uuid
An UUID wrapper class that allow you to define custom types that represent an UUID.
The intended usage pattern is something like:
This allows you to then reference UserId instead of UUID and to have methods that take a strongly typed UserId instead of an UUID (which could represent something other than a User id)
Note: The class that extends this should also extends AnyVal so that serialization will just pass through to the underlying uuid