def deserialize_report(self, serialized):
        """Deserialize a report that has been serialized by calling report.serialize()

        Args:
            serialized (dict): A serialized report object
        """

        type_map = self.known_formats

        if serialized['report_format'] not in type_map:
            raise ArgumentError("Unknown report format in DeserializeReport", format=serialized['report_format'])

        report = type_map[serialized['report_format']](serialized['encoded_report'])
        report.received_time = serialized['received_time']

        return report
def deserialize_report ( self , serialized ) : type_map = self . known_formats if serialized [ 'report_format' ] not in type_map : raise ArgumentError ( "Unknown report format in DeserializeReport" , format = serialized [ 'report_format' ] ) report = type_map [ serialized [ 'report_format' ] ] ( serialized [ 'encoded_report' ] ) report . received_time = serialized [ 'received_time' ] return report
Deserialize a report that has been serialized by calling report.serialize()

        Args:
            serialized (dict): A serialized report object