<s> class Connection ( object ) : <EOL> def __init__ ( self , edges , page_info ) : <EOL> self . edges = edges <EOL> self . page_info = page_info <EOL> def to_dict ( self ) : <EOL> return { <EOL> '<STR_LIT>' : [ e . to_dict ( ) for e in self . edges ] , <EOL> '<STR_LIT>' : self . page_info . to_dict ( ) , <EOL> } <EOL> class PageInfo ( object ) : <EOL> def __init__ ( self , start_cursor = "<STR_LIT>" , end_cursor = "<STR_LIT>" , <EOL> has_previous_page = False , has_next_page = False ) : <EOL> self . startCursor = start_cursor <EOL> self . endCursor = end_cursor <EOL> self . hasPreviousPage = has_previous_page <EOL> self . hasNextPage = has_next_page <EOL> def to_dict ( self ) : <EOL> return { <EOL> '<STR_LIT>' : self . startCursor , <EOL> '<STR_LIT>' : self . endCursor , <EOL> '<STR_LIT>' : self . hasPreviousPage , <EOL> '<STR_LIT>' : self . hasNextPage , <EOL> } <EOL> class Edge ( object ) : <EOL> def __init__ ( self , node , cursor ) : <EOL> self . node = node <EOL> self . cursor = cursor <EOL> def to_dict ( self ) : <EOL> return { <EOL> '<STR_LIT>' : self . node , <EOL> '<STR_LIT>' : self . cursor , <EOL> } </s>
