#NEWLINE# @ classmethod #NEWLINE# def from_json( cls , input_shard_state ) : #NEWLINE# #INDENT# start_id = input_shard_state [ 'start' ] #NEWLINE# end_id = input_shard_state [ 'end' ] #NEWLINE# shard_id = input_shard_state [ 'shard_id' ] #NEWLINE# model = input_shard_state [ 'model' ] #NEWLINE# db = input_shard_state [ 'db' ] #NEWLINE# reader = DjangoInputReader ( start_id , end_id , model , db = db ) #NEWLINE# reader . shard_id = shard_id #NEWLINE# return reader