'Build a Record object from the item dictionary.'

def _to_record(self, item, zone=None):

    extra = {'protocol': item['PROTOCOL'], 'ttl_sec': item['TTL_SEC'], 'port': item['PORT'], 'weight': item['WEIGHT']}
    type = self._string_to_record_type(item['TYPE'])
    record = Record(id=item['RESOURCEID'], name=item['NAME'], type=type, data=item['TARGET'], zone=zone, driver=self, ttl=item['TTL_SEC'], extra=extra)
    return record
