toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'git': {
        'url': url.toString(),
        if (path != null) 'path': path,
        if (ref != null) 'ref': ref,
      }
    };