public static Object translateOutputPushNotificationsDevice(BaseModel<?> oldModel) { PushNotificationsDeviceClp newModel = new PushNotificationsDeviceClp(); newModel.setModelAttributes(oldModel.getModelAttributes()); newModel.setPushNotificationsDeviceRemoteModel(oldModel); return newModel; }
public static Object translateInputPushNotificationsDevice(BaseModel<?> oldModel) { PushNotificationsDeviceClp oldClpModel = (PushNotificationsDeviceClp) oldModel; BaseModel<?> newModel = oldClpModel.getPushNotificationsDeviceRemoteModel(); newModel.setModelAttributes(oldClpModel.getModelAttributes()); return newModel; }