parse static method

List<ConnectionConfig> parse(
  1. String content
)

Implementation

static List<ConnectionConfig> parse(String content) {
  final yaml = loadYaml(content);
  if (yaml is! YamlMap || yaml['connections'] == null) return [];
  return (yaml['connections'] as YamlList)
      .map((conn) => ConnectionConfig.fromYaml(conn as YamlMap))
      .toList();
}