ArrayToObject class Null safety
Converts an array into a single document; the array must be either:
an array of two-element arrays where the first element is the field name, and the second element is the field value:
[ [ "item", "abc123"], [ "qty", 25 ] ]
an array of documents that contains two fields,
kfield contains the field name.
vfield contains the value of the field.
- ArrayToObject(dynamic array)