getByKeyValue method

Future<TEntity> getByKeyValue(
  1. String keyValue, {
  2. RepositoryTransaction? transaction,
})

Implementation

Future<TEntity> getByKeyValue(
  String keyValue, {
  RepositoryTransaction? transaction,
}) async {
  var map = await repository.get(
    keyValue,
    principal,
    transaction: transaction,
  );
  var entity = mapMapper.fromMap(map);

  return entity;
}