export function parseAnnotations(str: string) { if (str == '') { return new Map() } else { const annotation = JSON.parse(str) return new Map(annotation) } }