#NEWLINE# @ classmethod #NEWLINE# def from_model( cls , model , mask_secrets = False ) : #NEWLINE# #INDENT# action = cls . _from_model ( model ) #NEWLINE# action [ 'runner_type' ] = action [ 'runner_type' ] [ 'name' ] #NEWLINE# action [ 'tags' ] = TagsHelper . from_model ( model . tags ) #NEWLINE# if getattr ( model , 'notify' , None ) : #NEWLINE# #INDENT# action [ 'notify' ] = NotificationsHelper . from_model ( model . notify ) #NEWLINE# #UNINDENT# return cls ( ** action )