convertToIntIfDoubleValue function
Helper function to overcome the current spotify bug
Implementation
int? convertToIntIfDoubleValue(dynamic jsonValue) {
if (jsonValue is num) {
return jsonValue.toInt();
}
return null;
}
Helper function to overcome the current spotify bug
int? convertToIntIfDoubleValue(dynamic jsonValue) {
if (jsonValue is num) {
return jsonValue.toInt();
}
return null;
}