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<String,dynamic>();
See also https://api.dartlang.org/stable/2.0.0/dart-core/Map/cast.html
Usually it's better to use Map<String,String>.from(oldMap) instead of cast<...>(...)
Map<String,String>.from(oldMap)
cast<...>(...)