parseDouble static method

double parseDouble(
  1. dynamic jsonProperty
)

Implementation

static double parseDouble(dynamic jsonProperty) {
  double value = 0.0;

  try {
    if (jsonProperty != null) {
      value = double.parse(jsonProperty.toString());
    }
  } catch (e) {
    print(e);
  }

  return value;
}