getDouble static method

dynamic getDouble(
  1. dynamic value
)

A helper for JSON number decoding.

Implementation

static getDouble(dynamic value) {
  if (value is int) {
    return value.toDouble();
  } else {
    return value;
  }
}