How to get the name of a durable object

I'm creating durable objects via this.env.SWARM.get(this.env.SWARM.idFromName(HEX_STRING))
But when i call this.ctx.id.name inside the object it is undefined.
Is there a way to get name -- or associate other state with the object during its construction/instantiation?
Was this page helpful?