#NEWLINE# def __init__( self , transport , payload , url , token = None , **kwargs ) : #NEWLINE# #INDENT# super ( ItemResource , self ) . __init__ ( payload , payload , url , token = token , ** kwargs ) #NEWLINE# self . _fields = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( token is not None ) : #NEWLINE# #INDENT# data = self . _payload [ token ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# data = self . _payload #NEWLINE# #UNINDENT# for ( name , value ) in six . iteritems ( data ) : #NEWLINE# #INDENT# if ( name not in self . _excluded_attrs ) : #NEWLINE# #INDENT# self . _fields [ name ] = value