toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final documentDataFieldName = this.documentDataFieldName;
  final documentTitleFieldName = this.documentTitleFieldName;
  final fieldMappings = this.fieldMappings;
  final includeFilterTypes = this.includeFilterTypes;
  return {
    'DocumentDataFieldName': documentDataFieldName,
    if (documentTitleFieldName != null)
      'DocumentTitleFieldName': documentTitleFieldName,
    if (fieldMappings != null) 'FieldMappings': fieldMappings,
    if (includeFilterTypes != null)
      'IncludeFilterTypes':
          includeFilterTypes.map((e) => e.toValue()).toList(),
  };
}