room obj to dict