(cls, s)
return from_json(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().
Utility class method to instantiate a MediaUpload subclass from a JSON
    representation produced by to_json().
Utility class method to instantiate a MediaUpload subclass from a JSON representation produced by to_json () .
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)
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 )