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