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

io.imunity.rest.mappers.GroupPropertyMapper Maven / Gradle / Ivy

/*
 * Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
 * See LICENCE.txt file for licensing information.
 */

package io.imunity.rest.mappers;

import io.imunity.rest.api.types.basic.RestGroupProperty;
import pl.edu.icm.unity.base.group.GroupProperty;

public class GroupPropertyMapper
{
	static RestGroupProperty map(GroupProperty groupProperty)
	{
		return RestGroupProperty.builder()
				.withKey(groupProperty.key)
				.withValue(groupProperty.value)
				.build();
	}

	static GroupProperty map(RestGroupProperty groupProperty)
	{
		return new GroupProperty(groupProperty.key, groupProperty.value);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy