toJson method
Implementation
@override
Object toJson() => {
if (sharepointFolderPath case final sharepointFolderPath?)
'sharepointFolderPath': sharepointFolderPath,
if (sharepointFolderId case final sharepointFolderId?)
'sharepointFolderId': sharepointFolderId,
if (driveName case final driveName?) 'driveName': driveName,
if (driveId case final driveId?) 'driveId': driveId,
if (clientId.isNotDefault) 'clientId': clientId,
if (clientSecret case final clientSecret?)
'clientSecret': clientSecret.toJson(),
if (tenantId.isNotDefault) 'tenantId': tenantId,
if (sharepointSiteName.isNotDefault)
'sharepointSiteName': sharepointSiteName,
if (fileId.isNotDefault) 'fileId': fileId,
};