public static V1Postal toV1Postal(Postal postal)
{
if (postal != null)
{
V1Postal v1Postal = new V1Postal();
v1Postal.setCity(postal.getCity());
v1Postal.setCountry(postal.getCountry());
v1Postal.setName(postal.getName());
v1Postal.setOrganization(postal.getOrganization());
v1Postal.setPostalcode(postal.getPostalcode());
v1Postal.setStateprov(postal.getStateprov());
v1Postal.setStreet(postal.getStreet());
List<Extension> extensions = postal.getExtensions();
if (extensions != null)
{
v1Postal.getExtensions().addAll(WSRPUtils.transform(extensions, EXTENSION));
}
return v1Postal;
}
else