toJson method

  1. @override
Object toJson()

Implementation

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