Add PHPDoc for fromJSON 2nd argument