* refactor: use Object.fromEntries() instead of in-house implementation * Remove extra type assertions