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