export function convertToMap(object: Record): Map { return new Map(Object.entries(object)) as Map; }