toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'gcsSource': ?gcsSource?.toJson(),
  'googleDriveSource': ?googleDriveSource?.toJson(),
  'directUploadSource': ?directUploadSource?.toJson(),
  'slackSource': ?slackSource?.toJson(),
  'jiraSource': ?jiraSource?.toJson(),
  'sharePointSources': ?sharePointSources?.toJson(),
  if (name.isNotDefault) 'name': name,
  'displayName': displayName,
  if (description.isNotDefault) 'description': description,
  if (sizeBytes.isNotDefault) 'sizeBytes': sizeBytes.toString(),
  if (ragFileType.isNotDefault) 'ragFileType': ragFileType.toJson(),
  'createTime': ?createTime?.toJson(),
  'updateTime': ?updateTime?.toJson(),
  'fileStatus': ?fileStatus?.toJson(),
  if (userMetadata.isNotDefault) 'userMetadata': userMetadata,
};