the instance to introspect.
values of all properties;
let Clazz = declare({
firstName: "",
lastName: "",
});
let instance = new Clazz({firstName:"Test"});
let state = toObject(instance);
//-> { firstName: "Test", lastName:"" }
Generated using TypeDoc
Helper to transform given mutable instance into flat object. Properties with undefined values are not copied.