Parsing JSON objects as custom classes in Typescript and Vue