#NEWLINE# def parse_response( self , res ) : #NEWLINE# #INDENT# res = super ( GetListEndpoint , self ) . parse_response ( res ) #NEWLINE# j = res [ 'json' ] . datum #NEWLINE# l = [ ] #NEWLINE# for jrep in j [ '_embedded' ] [ self . model_name ] : #NEWLINE# #INDENT# l . append ( Representation ( Model ( self . full_model_name ) ) . from_json ( jrep ) ) #NEWLINE# #UNINDENT# if self . list_metadata : #NEWLINE# #INDENT# meta = j . copy ( ) #NEWLINE# del meta [ '_embedded' ] #NEWLINE# del meta [ '_links' ] #NEWLINE# meta = Struct ( self . list_metadata ) . from_json ( meta ) #NEWLINE# return ( l , meta ) #NEWLINE# #UNINDENT# return l