Merge pull request #2359 from Claudenw/GH-2358_from_and_fromNamed_take_object

Gh 2358 from() and fromNamed() take object