serialize

abstract fun serialize(route: T): String

Serializes a given object of type T to String for setting it to the window.location.hash