toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'name': name,
  'path': path,
  if (type != null) 'type': type,
  'sourceRoots': sourceRoots,
  'testRoots': testRoots,
  'resourceRoots': resourceRoots,
  'dependencies': dependencies.map((d) => d.toJson()).toList(),
};