SalesforceChatterFeedConfiguration.fromJson constructor

SalesforceChatterFeedConfiguration.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SalesforceChatterFeedConfiguration.fromJson(
    Map<String, dynamic> json) {
  return SalesforceChatterFeedConfiguration(
    documentDataFieldName: json['DocumentDataFieldName'] as String,
    documentTitleFieldName: json['DocumentTitleFieldName'] as String?,
    fieldMappings: (json['FieldMappings'] as List?)
        ?.whereNotNull()
        .map((e) =>
            DataSourceToIndexFieldMapping.fromJson(e as Map<String, dynamic>))
        .toList(),
    includeFilterTypes: (json['IncludeFilterTypes'] as List?)
        ?.whereNotNull()
        .map((e) => (e as String).toSalesforceChatterFeedIncludeFilterType())
        .toList(),
  );
}