VoyagerPath.fromYaml constructor

VoyagerPath.fromYaml({
  1. required String path,
  2. required YamlMap config,
})

factory method for creating a single Voyager path instance from YamlMap

Implementation

factory VoyagerPath.fromYaml(
    {required String path, required YamlMap config}) {
  return VoyagerPath.fromMap(
      path: path, config: json.decode(json.encode(config)));
}