toJson method
Implementation
@override
Map toJson() {
if (ref == null && path == null) {
return {'git': url.toString()};
}
var arguments = {'url': url.toString()};
if (ref != null) arguments['ref'] = ref!;
if (path != null) arguments['path'] = path!;
return {'git': arguments};
}