class PermissionModelDataMapper {

  public Permission transformInverse(PermissionModel permissionModel) {
    if (permissionModel == null) {
      throw new IllegalArgumentException("Cannot transform a null PermissionModel object.");
    }

    return Permission.builder()
        .permission(permissionModel.permission())
        .rationaleTitle(permissionModel.rationaleTitle())
        .rationaleMessage(permissionModel.rationaleMessage())
        .deniedMessage(permissionModel.deniedMessage())
        .build();
  }

  @Inject public  PermissionModelDataMapper();

}