getAsObject method Null safety

dynamic getAsObject(
  1. [int? index]
)

Gets the value stored in array element without any conversions. When element index is not defined it returns the entire array value.

  • index (optional) an index of the element to get Returns the element value or value of the array when index is not defined.