ColumnConfiguration.fromJson constructor
ColumnConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ColumnConfiguration.fromJson(Map<String, dynamic> json) {
return ColumnConfiguration(
changeDetectingColumns: (json['ChangeDetectingColumns'] as List)
.whereNotNull()
.map((e) => e as String)
.toList(),
documentDataColumnName: json['DocumentDataColumnName'] as String,
documentIdColumnName: json['DocumentIdColumnName'] as String,
documentTitleColumnName: json['DocumentTitleColumnName'] as String?,
fieldMappings: (json['FieldMappings'] as List?)
?.whereNotNull()
.map((e) =>
DataSourceToIndexFieldMapping.fromJson(e as Map<String, dynamic>))
.toList(),
);
}