VoyagerPath.fromMap constructor
factory method for creating a single Voyager path instance from Map
Implementation
factory VoyagerPath.fromMap(
{required String path, required Map<String, dynamic> config}) {
if (config["type"] == null && config["redirect"] == null) {
config["type"] = VoyagerUtils.typify(path);
}
return VoyagerPath._(path: path, config: config);
}