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