toJson method

Map<String, dynamic> toJson()

Implementation

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