toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (partialFailuresGcsPath case final partialFailuresGcsPath?)
    'partialFailuresGcsPath': partialFailuresGcsPath,
  if (partialFailuresBigqueryTable case final partialFailuresBigqueryTable?)
    'partialFailuresBigqueryTable': partialFailuresBigqueryTable,
  if (importedRagFilesCount.isNotDefault)
    'importedRagFilesCount': importedRagFilesCount.toString(),
  if (failedRagFilesCount.isNotDefault)
    'failedRagFilesCount': failedRagFilesCount.toString(),
  if (skippedRagFilesCount.isNotDefault)
    'skippedRagFilesCount': skippedRagFilesCount.toString(),
};