toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final documentDataFieldName = this.documentDataFieldName;
  final crawlAttachments = this.crawlAttachments;
  final documentTitleFieldName = this.documentTitleFieldName;
  final excludeAttachmentFilePatterns = this.excludeAttachmentFilePatterns;
  final fieldMappings = this.fieldMappings;
  final includeAttachmentFilePatterns = this.includeAttachmentFilePatterns;
  return {
    'DocumentDataFieldName': documentDataFieldName,
    if (crawlAttachments != null) 'CrawlAttachments': crawlAttachments,
    if (documentTitleFieldName != null)
      'DocumentTitleFieldName': documentTitleFieldName,
    if (excludeAttachmentFilePatterns != null)
      'ExcludeAttachmentFilePatterns': excludeAttachmentFilePatterns,
    if (fieldMappings != null) 'FieldMappings': fieldMappings,
    if (includeAttachmentFilePatterns != null)
      'IncludeAttachmentFilePatterns': includeAttachmentFilePatterns,
  };
}