getByUuid method
Get By Uuid
Implementation
Future<T?> getByUuid(String uuid) async {
final db = await JDB.instance.database;
final List<Map<String, dynamic>> maps = await db.query(
table,
where: '${TMaster.uuid} = ?',
whereArgs: [uuid],
);
if (maps.isNotEmpty) {
return fromMap(maps.first);
}
return null;
}