I\'m unable to find solutions from the previously available question, I have cast json string to map
json
map
Below is my API calling method.
Use instead
.cast();
See also https://api.dartlang.org/stable/2.0.0/dart-core/Map/cast.html
Usually it's better to use Map.from(oldMap) instead of cast<...>(...)
Map.from(oldMap)
cast<...>(...)