code: def from_dict(cls, d):
          
          tdos = PhononDos.from_dict(d)
          struct = Structure.from_dict(d["structure"])
          pdoss = {}
          for at, pdos in zip(struct, d["pdos"]):
              pdoss[at] = pdos
  
          return cls(struct, tdos, pdoss)
docs: Returns CompleteDos object from dict representation.