toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (annotatedDatasetDescription != null)
        'annotatedDatasetDescription': annotatedDatasetDescription!,
      if (annotatedDatasetDisplayName != null)
        'annotatedDatasetDisplayName': annotatedDatasetDisplayName!,
      if (contributorEmails != null) 'contributorEmails': contributorEmails!,
      if (instruction != null) 'instruction': instruction!,
      if (labelGroup != null) 'labelGroup': labelGroup!,
      if (languageCode != null) 'languageCode': languageCode!,
      if (questionDuration != null) 'questionDuration': questionDuration!,
      if (replicaCount != null) 'replicaCount': replicaCount!,
      if (userEmailAddress != null) 'userEmailAddress': userEmailAddress!,
    };