load method

Future<ProjectConfiguration> load(
  1. String filePath
)

Implementation

Future<ProjectConfiguration> load(String filePath) async {
  final file = File(filePath);
  if (!await file.exists()) {
    throw FileSystemException('Configuration file not found', filePath);
  }
  final content = await file.readAsString();
  final jsonMap = jsonDecode(content) as Map<String, dynamic>;
  return ProjectConfiguration.fromJson(jsonMap);
}