Creates a double from a Model. If unsucessful, will return -1.
-1
double doubleFromModel(Model model) => model.data["data"]?.toDouble() ?? -1;