All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.applitools.eyes.universal.mapper.AccessibilitySettingsMapper Maven / Gradle / Ivy

There is a newer version: 5.76.0
Show newest version
package com.applitools.eyes.universal.mapper;

import com.applitools.eyes.AccessibilitySettings;
import com.applitools.eyes.universal.dto.AccessibilitySettingsDto;

/**
 * Accessibility settings mapper
 */
public class AccessibilitySettingsMapper {

  public static AccessibilitySettingsDto toAccessibilitySettingsDto(AccessibilitySettings accessibilitySettings) {
    if (accessibilitySettings == null) {
      return null;
    }

    AccessibilitySettingsDto accessibilitySettingsDto = new AccessibilitySettingsDto();
    accessibilitySettingsDto.setLevel(accessibilitySettings.getLevel().name());
    accessibilitySettingsDto.setVersion(accessibilitySettings.getGuidelinesVersion().name());
    return accessibilitySettingsDto;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy