class PermissionEntityDataMapper {

  public PermissionEntity transformInverse(Permission permission) {
    if (permission == null) {
      return null;
    }

    return new PermissionEntity.Builder()
        .permission(permission.permission())
        .rationaleTitle(permission.rationaleTitle())
        .rationaleMessage(permission.rationaleMessage())
        .deniedMessage(permission.deniedMessage())
        .build();
  }

  @Inject public  PermissionEntityDataMapper();

}