toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (orderByDataItem != null) 'orderByDataItem': orderByDataItem,
  if (orderByAnnotation != null)
    'orderByAnnotation': orderByAnnotation!.toJson(),
  'dataset': dataset,
  if (savedQuery.isNotDefault) 'savedQuery': savedQuery,
  if (dataLabelingJob.isNotDefault) 'dataLabelingJob': dataLabelingJob,
  if (dataItemFilter.isNotDefault) 'dataItemFilter': dataItemFilter,
  if (annotationsFilter.isNotDefault) 'annotationsFilter': annotationsFilter,
  if (annotationFilters.isNotDefault) 'annotationFilters': annotationFilters,
  if (fieldMask != null) 'fieldMask': fieldMask!.toJson(),
  if (annotationsLimit.isNotDefault) 'annotationsLimit': annotationsLimit,
  if (pageSize.isNotDefault) 'pageSize': pageSize,
  if (orderBy.isNotDefault) 'orderBy': orderBy,
  if (pageToken.isNotDefault) 'pageToken': pageToken,
};