Converting a string to double in Dart using double.parse()

Solution 1:

If the value was parsed from JSON, Dart knows the value is a double and the error is telling me that the value is of type double and the convert expected type string.

So the error is much more clear once I understood!