class PermissionModelDataMapper {

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

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

  @Inject public  PermissionModelDataMapper();

}