Angular Create Json Object Dynamically Typed