How can I set a Neo field's values from my plugin/module? I wish to programmatically set the value of a Neo field.
This is my current approach:

$entryData = self::setupEntryData($item);
$entry = new Entry($entryData);

$fieldValues = [
    'heading' =&gt; $entryData['title'],
    'blocks' =&gt; [
        'blocks' =&gt; [
            'new0' =&gt; [
                'modified' =&gt; 1,
                'type' =&gt; 'wysiwyg',
                'enabled' =&gt; 1,
                'collapsed' =&gt; 0,
                'level' =&gt; 0,
                'fields' =&gt; [
                    'grayBackground' =&gt; true,
                    'wysiwyg' =&gt; '&lt;p&gt;test&lt;/p&gt;',
                    'buttons' =&gt; null,
                ]
            ]
        ]
    ],
];

$entry-&gt;setFieldValues($fieldValues);


Of course this doesn't work.
Can someone point me in the right direction?
Here is a screenshot of the Form Data that is passed when setting the value manually from Craft CMS.


Just to confirm, my Neo field is called blocks.
My target blog type has a handle of wysiwyg.
The Redactor field I target has a handle of wysiwyg.  

Thank you!
I just figured it out.

For anyone facing the same issue, here is what worked for me:

$entryData = self::setupEntryData($item);
$entry = new Entry($entryData);

$fieldValues = [
    'blocks' =&gt; [ // Neo field handle
        'new0' =&gt; [
            'modified' =&gt; 1,
            'type' =&gt; 'wysiwyg', // Neo block handle
            'enabled' =&gt; 1,
            'collapsed' =&gt; 0,
            'level' =&gt; 0,
            'fields' =&gt; [
                'grayBackground' =&gt; true, // Neo block field
                'wysiwyg' =&gt; '&lt;p&gt;test&lt;/p&gt;', // Neo block field
                'buttons' =&gt; null, // Neo block field
            ]
        ]
    ],
];

$entry-&gt;setFieldValues($fieldValues);