def to_json_data(self, model_name=None):
        """
        Parameters
        ----------
        model_name: str, default None
            if given, will be used as external file directory base name

        Returns
        -------
        A dictionary of serialized data.
        """
        return collections.OrderedDict([(k, self.get_serialized_value(k, model_name=model_name )) for k in self._data])
def to_json_data(self, model_name=None):
        """
        Parameters
        ----------
        model_name: str, default None
            if given, will be used as external file directory base name

        Returns
        -------
        A dictionary of serialized data.
        """
        return collections.OrderedDict([(k, self.get_serialized_value(k, model_name=model_name )) for k in self._data])
def to_json_data ( self , model_name = None ) : return collections . OrderedDict ( [ ( k , self . get_serialized_value ( k , model_name = model_name ) ) for k in self . _data ] )
Parameters
        ----------
        model_name: str, default None
            if given, will be used as external file directory base name

        Returns
        -------
        A dictionary of serialized data.
Parameters ---------- model_name : str default None if given will be used as external file directory base name