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