Get map value by key as double.
double? getDouble(String key) { if (!this.containsKey(key)) { return null; } if (this[key] is! double) { return null; } return this[key]; }