def METHOD_NAME(active_directories=None):
    acc_active_directories = None
    if active_directories:
        acc_active_directories = []
        ad_list = json.loads(active_directories)
        for ad in ad_list:
            username = ad['username'] if 'username' in ad else None
            password = ad['password'] if 'password' in ad else None
            domain = ad['domain'] if 'domain' in ad else None
            dns = ad['dns'] if 'dns' in ad else None
            smbservername = ad['smbservername'] if 'smbservername' in ad else None
            organizational_unit = ad['organizational_unit'] if 'organizational_unit' in ad else None
            active_directory = ActiveDirectory(username=username, password=password, domain=domain, dns=dns, smb_server_name=smbservername, organizational_unit=organizational_unit)
            acc_active_directories.append(active_directory)
    return acc_active_directories