toJson method
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'nodeId': nodeId,
'name': name,
'kind': kind,
'remotePath': remotePath,
if (localPath != null) 'localPath': localPath,
if (gitUrl != null) 'gitUrl': gitUrl,
if (gitBranch != null) 'gitBranch': gitBranch,
if (currentBranch != null) 'currentBranch': currentBranch,
'readWrite': readWrite,
if (ephemeral) 'ephemeral': true,
'driveId': driveId,
if (!filter.isEmpty) 'filter': filter.toJson(),
'mountedAt': mountedAt.toIso8601String(),
'syncState': syncState.toJson(),
if (baselineManifest != null)
'baselineManifest': baselineManifest!.toJson(),
};