Hello Peter,
The idea of my code is to show you how to "convert" an Array of objects to your desired Array of arrays variable, but, I think the below can't do the job:
Certainly you are assigned some data to the "SourceObjects" variable, but, nothing happend then, you did not apply the code there, or, I can't see it.
I think it's better to use the JavaScript version of my sample, since you are already dealing with JavaScript code, so, the code can looks like the below one:
However, note that the above code can't work as expected, because you must change the below:
... in order to match your objects properties: for example, in my sample there is a property "Name" in the samples objects, but, maybe that property don't exists in your objects, or, may you want to use another properties. My code is just a sample which uses ficticious objects.
If I did not provide to you a real sample (using your source of data) is because I am not sure about the source that you get. So, please, try the above, and, if you wanted, post here the server's response, that is, the content of the "doc.data()" variable, but, be sure that you copy here the complete JSON (the idea is that you can get it from the developer console, but, not copying what you paste here: instead of it, you must copy here the entire JSON response, even if it's unformatted, that is not a problem) so I can take a look it.
I mean post here the contents of the red rectangle, and not the contents of the blue rectangle: