SalesforceStandardObjectConfiguration.fromJson constructor

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

Implementation

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