Map a methods object to include the correct this type for model instances.
Similar to StaticMethodsFrom, but targets instance methods so they
receive the fully-typed instance (including relation fields) as their
this context without extra boilerplate.
Map a methods object to include the correct
thistype for model instances.Similar to StaticMethodsFrom, but targets instance methods so they receive the fully-typed instance (including relation fields) as their
thiscontext without extra boilerplate.