Closed Nagasir closed 8 months ago
This is a PHP bug in your code: PHP arrays could be converted as an array or an object so if you want the "example" to be rendered as an object cast it like so:
$message->data->fill(
[
“type_of_food” => ”vegetable”,
“example” =>
(object)[
0 =>
[
"red" => “carrots”,
"green" => “broccoli”
]
]
]
)
Hello,
Thank you for your awesome code, but I have a problem sending this kind of nested array in the data property
Could you please help..the "example" part still recognized as an array in Flutter code