load static method

Configuration? load(
  1. String fileName
)

Implementation

static Configuration? load(String fileName) {
  final file = File(fileName);
  if (!file.existsSync()) {
    return null;
  }
  final Map<String, dynamic> jsonMap = jsonDecode(file.readAsStringSync());
  return Configuration.fromJson(jsonMap);
}