readSpecVersionsFromFilePath function
Implementation
Future<List<SpecVersion>> readSpecVersionsFromFilePath(String filePath) async {
if (filePath.endsWith('.json')) {
return await _readSpecVersionFromJson(filePath);
} else {
return await _readSpecVersionJsonLines(filePath);
}
}