@classmethod
def import_(cls, config) ->'Interface':
    """
        Import interface from config string.
        :param config: str
        :return: Interface
        """
    instance = cls()
    for line in config.split():
        line = line.strip()
        key = line.split(':')[0].strip().replace(' ', '_')
        value = line.split(':')[1].strip()
        setattr(instance, key, value)
    return instance
