AlexGitConfig.fromYaml constructor
AlexGitConfig.fromYaml(
- YamlMap data
Implementation
factory AlexGitConfig.fromYaml(YamlMap data) {
const branchesKey = 'branches';
return AlexGitConfig(
remote: data['remote'] as String? ?? _defaultRemote,
branches: data.containsKey(branchesKey)
? AlexGitConfigBranches.fromYaml(data[branchesKey] as YamlMap)
: const AlexGitConfigBranches(),
);
}