toJson method

dynamic toJson()

Implementation

dynamic toJson() {
  final dep = this;

  if (dep is GitDependency) return dep.toJson();
  if (dep is PathDependency) return dep.toJson();
  if (dep is HostedDependency) return dep.toJson();
}