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