toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final secretArn = this.secretArn;
  final sharePointVersion = this.sharePointVersion;
  final urls = this.urls;
  final crawlAttachments = this.crawlAttachments;
  final disableLocalGroups = this.disableLocalGroups;
  final documentTitleFieldName = this.documentTitleFieldName;
  final exclusionPatterns = this.exclusionPatterns;
  final fieldMappings = this.fieldMappings;
  final inclusionPatterns = this.inclusionPatterns;
  final useChangeLog = this.useChangeLog;
  final vpcConfiguration = this.vpcConfiguration;
  return {
    'SecretArn': secretArn,
    'SharePointVersion': sharePointVersion.toValue(),
    'Urls': urls,
    if (crawlAttachments != null) 'CrawlAttachments': crawlAttachments,
    if (disableLocalGroups != null) 'DisableLocalGroups': disableLocalGroups,
    if (documentTitleFieldName != null)
      'DocumentTitleFieldName': documentTitleFieldName,
    if (exclusionPatterns != null) 'ExclusionPatterns': exclusionPatterns,
    if (fieldMappings != null) 'FieldMappings': fieldMappings,
    if (inclusionPatterns != null) 'InclusionPatterns': inclusionPatterns,
    if (useChangeLog != null) 'UseChangeLog': useChangeLog,
    if (vpcConfiguration != null) 'VpcConfiguration': vpcConfiguration,
  };
}