toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'fractionSplit': ?fractionSplit?.toJson(),
  'filterSplit': ?filterSplit?.toJson(),
  'predefinedSplit': ?predefinedSplit?.toJson(),
  'timestampSplit': ?timestampSplit?.toJson(),
  'stratifiedSplit': ?stratifiedSplit?.toJson(),
  'gcsDestination': ?gcsDestination?.toJson(),
  'bigqueryDestination': ?bigqueryDestination?.toJson(),
  'datasetId': datasetId,
  if (annotationsFilter.isNotDefault) 'annotationsFilter': annotationsFilter,
  if (annotationSchemaUri.isNotDefault)
    'annotationSchemaUri': annotationSchemaUri,
  if (savedQueryId.isNotDefault) 'savedQueryId': savedQueryId,
  if (persistMlUseAssignment.isNotDefault)
    'persistMlUseAssignment': persistMlUseAssignment,
};