parameters: (cls, s)
return_statement: return from_json(s)
docstring: Utility class method to instantiate a MediaUpload subclass from a JSON
      representation produced by to_json().
  
      Args:
        s: string, JSON from to_json().
  
      Returns:
        An instance of the subclass of MediaUpload that was serialized with
        to_json().
docstring_summary: Utility class method to instantiate a MediaUpload subclass from a JSON
      representation produced by to_json().
docstring_tokens: Utility class method to instantiate a MediaUpload subclass from a JSON representation produced by to_json () .
function: def new_from_json(cls, s):
      """Utility class method to instantiate a MediaUpload subclass from a JSON
      representation produced by to_json().
  
      Args:
        s: string, JSON from to_json().
  
      Returns:
        An instance of the subclass of MediaUpload that was serialized with
        to_json().
      """
      data = simplejson.loads(s)
      # Find and call the right classmethod from_json() to restore the object.
      module = data['_module']
      m = __import__(module, fromlist=module.split('.')[:-1])
      kls = getattr(m, data['_class'])
      from_json = getattr(kls, 'from_json')
      return from_json(s)
function_tokens: def new_from_json ( cls , s ) : data = simplejson . loads ( s ) # Find and call the right classmethod from_json() to restore the object. module = data [ '_module' ] m = __import__ ( module , fromlist = module . split ( '.' ) [ : - 1 ] ) kls = getattr ( m , data [ '_class' ] ) from_json = getattr ( kls , 'from_json' ) return from_json ( s )