(self, obj, **kwargs)
Map JSON data into Python object.

        This is the standard object that will be rendered into the templates,
        so we try and keep standard naming to keep templates more re-usable.
Map JSON data into Python object.
Map JSON data into Python object .
def __init__(self, obj, **kwargs):
        """
        Map JSON data into Python object.

        This is the standard object that will be rendered into the templates,
        so we try and keep standard naming to keep templates more re-usable.
        """

        super(JavaScriptPythonMapper, self).__init__(obj, **kwargs)
        self.name = obj.get("name")
        self.id = self.name

        # Second level
        self.docstring = obj.get("description", "")
        # self.docstring = obj.get('comment', '')

        self.imports = obj.get("imports", [])
        self.children = []
        self.parameters = map(
            lambda n: {"name": n["name"], "type": n["type"][0]}, obj.get("param", [])
        )
def __init__ ( self , obj , * * kwargs ) : super ( JavaScriptPythonMapper , self ) . __init__ ( obj , * * kwargs ) self . name = obj . get ( "name" ) self . id = self . name # Second level self . docstring = obj . get ( "description" , "" ) # self.docstring = obj.get('comment', '') self . imports = obj . get ( "imports" , [ ] ) self . children = [ ] self . parameters = map ( lambda n : { "name" : n [ "name" ] , "type" : n [ "type" ] [ 0 ] } , obj . get ( "param" , [ ] ) )