Hey there, I have an object structured like this:
let o = {"foo":"blah", "blah": "foo", "foo2":"blah2"}
In addition, my class is defined as follows:
class Foo {
constructor(public foo: string, blah: string) {}
}
I am curious if there is a way to instantiate the class `Foo` using the fields `foo` and `blah` from object `o` (excluding `foo2`). While I could manually write functions for this task, I am wondering if there is an automatic method available?