code: def from_dict(cls, d):
          
          tdos = Dos.from_dict(d)
          struct = Structure.from_dict(d["structure"])
          pdoss = {}
          for i in range(len(d["pdos"])):
              at = struct[i]
              orb_dos = {}
              for orb_str, odos in d["pdos"][i].items():
                  orb = orb_str
                  orb_dos[orb] = {Spin(int(k)): v
                                  for k, v in odos["densities"].items()}
              pdoss[at] = orb_dos
          return LobsterCompleteDos(struct, tdos, pdoss)
docs: Returns: CompleteDos object from dict representation.