Companion

Types

Link copied to clipboard
object WithoutAtSerializer : KSerializer<Username>

Serializes Username without the leading @ and accepts input with or without the prefix.

Functions

Link copied to clipboard
fun prepare(full: String): Username

Prepares a valid instance of Username by ensuring the given string starts with "@".