def to_dict(self):
<EOL>if self.L is None:<EOL><INDENT>return { "<STR_LIT>": self.mu.tolist(), "<STR_LIT>": self.Sigma.tolist()}<EOL><DEDENT>else:<EOL><INDENT>return { "<STR_LIT>": self.mu.tolist(), "<STR_LIT>": self.Sigma.tolist(), "<STR_LIT:L>": self.L.tolist()}<EOL><DEDENT>
Convert the object into a json serializable dictionary.

Note: It uses the private method _save_to_input_dict of the parent.

:return dict: json serializable dictionary containing the needed information to instantiate the object