'Returns an HttpRequest populated with info from a JSON object.'

@staticmethod
def from_json(s, http, postproc):

    d = json.loads(s)
    if (d['resumable'] is not None):
        d['resumable'] = MediaUpload.new_from_json(d['resumable'])
    return HttpRequest(http, postproc, uri=d['uri'], method=d['method'], body=d['body'], headers=d['headers'], methodId=d['methodId'], resumable=d['resumable'])
