parseDouble static method
Implementation
static double? parseDouble(dynamic json) {
if (json is String) {
return double.tryParse(json);
} else if (json is int) {
return json.toDouble();
} else {
return json;
}
}
static double? parseDouble(dynamic json) {
if (json is String) {
return double.tryParse(json);
} else if (json is int) {
return json.toDouble();
} else {
return json;
}
}