Create Parameters object from a dictionary

d = Dict([:name => "x"])
Dog(; d...)

Note the semicolon that makes d into keyword args. No need to convert the Dict to named tuples.

3 Likes