class PermissionEntityDataMapper {

  public Permission transform(PermissionEntity permissionEntity) {
    if (permissionEntity == null) {
      return null;
    }

    return Permission.builder()
        .permission(permissionEntity.getPermission())
        .rationaleTitle(permissionEntity.getRationaleTitle())
        .rationaleMessage(permissionEntity.getRationaleMessage())
        .deniedMessage(permissionEntity.getDeniedMessage())
        .build();
  }

  @Inject public  PermissionEntityDataMapper();

}