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