map method
override
Maps the given row returned by the database into the fitting data class.
Implementation
@override
MapSyncRecord map(Map<String, dynamic> data, {String? tablePrefix}) {
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
return MapSyncRecord(
namespace: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}namespace'],
)!,
catalogFetchedAt: attachedDatabase.typeMapping.read(
DriftSqlType.dateTime,
data['${effectivePrefix}catalog_fetched_at'],
),
indexFetchedAt: attachedDatabase.typeMapping.read(
DriftSqlType.dateTime,
data['${effectivePrefix}index_fetched_at'],
),
);
}