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