return characterInfo;
}
@Override
public ApiKeyDto map(ApiKey apiKey, Class<ApiKeyDto> apiKeyDtoClass) {
ApiKeyDto apiKeyDto = new ApiKeyDto();
apiKeyDto.setId(apiKey.getId());
List<ApiKeyCharacterInfoDto> characterInfoDtos = new ArrayList<ApiKeyCharacterInfoDto>();
for (ApiKeyCharacterInfo characterInfo : apiKey.getCharacterInfos()) {
characterInfoDtos.add(map(characterInfo, ApiKeyCharacterInfoDto.class));
}
apiKeyDto.setCharacterInfos(characterInfoDtos);
apiKeyDto.setLastCheckDate(apiKey.getLastCheckDate());
apiKeyDto.setKeyType(apiKey.getKeyType());
apiKeyDto.setValid(apiKey.isValid());
return apiKeyDto;
}