from typing import Dict


def deserialize_env(data: str) -> Dict[str, str]:
    """Deserialize the output of `env -0` to dictionary."""
    result = {}
    for item in data.strip("\0").split("\0"):
        key, val = item.split("=", 1)
        result[key] = val
    return result