valueFor method
Resolves the source value for column from row.
Resolution first checks FdcExportColumn.fieldName, then the computed output key, then the normalized field name used by FDC field lookup.
Implementation
Object? valueFor(Map<String, Object?> row, FdcExportColumn column) {
final sourceKey = column.fieldName;
if (row.containsKey(sourceKey)) {
return row[sourceKey];
}
final outputKey = keyFor(column);
if (row.containsKey(outputKey)) {
return row[outputKey];
}
return row[FdcFieldName.normalize(sourceKey)];
}