<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get(self, name):
 """Returns a dictionary object that represents a switchport The Switchport resource returns the following: * name (str):
 The name of the interface * mode (str):
 The switchport mode value * access_vlan (str):
 The switchport access vlan value * trunk_native_vlan (str):
 The switchport trunk native vlan vlaue * trunk_allowed_vlans (str):
 The trunk allowed vlans value * trunk_groups (list):
 The list of trunk groups configured Args: name (string):
 The interface identifier to get. Note: Switchports are only supported on Ethernet and Port-Channel interfaces Returns: dict: A Python dictionary object of key/value pairs that represent the switchport configuration for the interface specified If the specified argument is not a switchport then None is returned """

        config = self.get_block('interface %s' % name)
        if 'no switchport\n' in config:
            return

        resource = dict(name=name)
        resource.update(self._parse_mode(config))
        resource.update(self._parse_access_vlan(config))
        resource.update(self._parse_trunk_native_vlan(config))
        resource.update(self._parse_trunk_allowed_vlans(config))
        resource.update(self._parse_trunk_groups(config))
        return resource