docs: def parse_rules(content=None):
      """Helper to parse the input from the user into a list of rules.
  
      :param string content: the content of the editor
      :returns: a list of rules
      """
      rules = content.split(DELIMITER)
      parsed_rules = list()
      order = 1
      for rule in rules:
          if rule.strip() == '':
              continue
          parsed_rule = {}
          lines = rule.split("\n")
          parsed_rule['orderValue'] = order
          order += 1
          for line in lines:
              if line.strip() == '':
                  continue
              key_value = line.strip().split(':')
              key = key_value[0].strip()
              value = key_value[1].strip()
              if key == 'action':
                  parsed_rule['action'] = value
              elif key == 'protocol':
                  parsed_rule['protocol'] = value
              elif key == 'source_ip_address':
                  parsed_rule['sourceIpAddress'] = value
              elif key == 'source_ip_subnet_mask':
                  parsed_rule['sourceIpSubnetMask'] = value
              elif key == 'destination_ip_address':
                  parsed_rule['destinationIpAddress'] = value
              elif key == 'destination_ip_subnet_mask':
                  parsed_rule['destinationIpSubnetMask'] = value
              elif key == 'destination_port_range_start':
                  parsed_rule['destinationPortRangeStart'] = int(value)
              elif key == 'destination_port_range_end':
                  parsed_rule['destinationPortRangeEnd'] = int(value)
              elif key == 'version':
                  parsed_rule['version'] = int(value)
          parsed_rules.append(parsed_rule)
      return parsed_rules