Updated serializeRequest method name