Typescript Convert Json Object Into Javascript Map