feature(cloudfunc) buildFromJSON: change params