getByOwnershipId method Null safety

ConsentModel? getByOwnershipId(
  1. Uint8List ownershipId
)

Gets the latest consent by its ownershipId.

Implementation

ConsentModel? getByOwnershipId(Uint8List ownershipId) =>
    _repository.getByOwnershipId(ownershipId);