public static V1EmployerInfo toV1EmployerInfo(EmployerInfo employerInfo)
{
if (employerInfo != null)
{
V1EmployerInfo v1EmployerInfo = new V1EmployerInfo();
v1EmployerInfo.setDepartment(employerInfo.getDepartment());
v1EmployerInfo.setEmployer(employerInfo.getEmployer());
v1EmployerInfo.setJobtitle(employerInfo.getJobtitle());
List<Extension> extensions = employerInfo.getExtensions();
if (extensions != null)
{
v1EmployerInfo.getExtensions().addAll(WSRPUtils.transform(extensions, EXTENSION));
}
return v1EmployerInfo;
}
else