double doubleOrDefault(String key, double defaultValue) => configJson.containsKey(key) ? double.tryParse(configJson[key].toString()) ?? defaultValue : defaultValue;