def __init__(self, json, **kwargs):
        # type: (dict, **Any) -> None
        """Construct a scope from provided json data."""
        super(Scope, self).__init__(json, **kwargs)

        self.bucket = json.get('bucket', {})

        # for 'kechain2.core.wim <2.0.0'
        self.process = json.get('process')
        # for 'kechain2.core.wim >=2.0.0'
        self.workflow_root = json.get('workflow_root_id')

        self.description = json.get('description')
        self.status = json.get('status')
        self.type = json.get('type')
def __init__ ( self , json , ** kwargs ) : super ( Scope , self ) . __init__ ( json , ** kwargs ) self . bucket = json . get ( 'bucket' , { } ) self . process = json . get ( 'process' ) self . workflow_root = json . get ( 'workflow_root_id' ) self . description = json . get ( 'description' ) self . status = json . get ( 'status' ) self . type = json . get ( 'type' )
Construct a scope from provided json data.