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