Integer redirectType;
try {
redirectType = getNodeIntegerValue(recordNode, "redirectType");
} catch (MissingFieldJsonDeserializationException e) {
//For backward compatibility
return new URLRecord(name, dclass, ttl, getNodeStringValue(recordNode, "template"));
}
return new URLRecord(name, dclass, ttl, getNodeStringValue(recordNode, "template"), redirectType);
}