toJson method
Implementation
@override
Object toJson() {
return {
if (sharepointFolderPath != null)
'sharepointFolderPath': sharepointFolderPath,
if (sharepointFolderId != null) 'sharepointFolderId': sharepointFolderId,
if (driveName != null) 'driveName': driveName,
if (driveId != null) 'driveId': driveId,
if (clientId.isNotDefault) 'clientId': clientId,
if (clientSecret != null) 'clientSecret': clientSecret!.toJson(),
if (tenantId.isNotDefault) 'tenantId': tenantId,
if (sharepointSiteName.isNotDefault)
'sharepointSiteName': sharepointSiteName,
if (fileId.isNotDefault) 'fileId': fileId,
};
}