#NEWLINE# @ classmethod #NEWLINE# def from_model( cls , model , mask_secrets = False ) : #NEWLINE# #INDENT# doc = cls . _from_model ( model , mask_secrets = mask_secrets ) #NEWLINE# enforced_at = isotime . format ( model . enforced_at , offset = False ) #NEWLINE# doc [ 'enforced_at' ] = enforced_at #NEWLINE# attrs = { attr : cls for ( attr , value ) in six . iteritems ( doc ) if value } #NEWLINE# return cls ( ** attrs )