Dependency.fromJson constructor
Implementation
factory Dependency.fromJson(Map<String, dynamic> json) => Dependency(
fromPath: json['fromPath'] as String,
toPath: json['toPath'] as String,
type: DependencyType.values.firstWhere(
(e) => e.name == json['type'],
orElse: () => DependencyType.importDirective,
),
);