Typescript Create Object From Interface With Methods