serialize

inline fun <T : Enum<T>> T.serialize(): String