parse method

Map<String, dynamic>? parse(
  1. String fileName
)

Implementation

Map<String, dynamic>? parse(String fileName) {
  final content = retrieveNearestContent(fileName);

  if (content == null) {
    return null;
  }

  final yaml = loadYaml(content);

  if (yaml is! Map) {
    return null;
  }

  return yaml.cast<String, dynamic>();
}