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