map method
override
Maps the given row returned by the database into the fitting data class.
Implementation
@override
GeoLocationRow map(Map<String, dynamic> data, {String? tablePrefix}) {
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
return GeoLocationRow(
ip: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}ip'],
)!,
data: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}data'],
)!,
language: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}language'],
),
updatedAt: $GeoLocationsTable.$converterupdatedAt.fromSql(
attachedDatabase.typeMapping.read(
DriftSqlType.int,
data['${effectivePrefix}updated_at'],
)!,
),
);
}