Skip to main content

Class: ResponseAdapter<Response, JSONResponse>

moralis-monorepo / @moralisweb3/common-core / ResponseAdapter

Class: ResponseAdapter<Response, JSONResponse>

@moralisweb3/common-core.ResponseAdapter

Type parameters

Name
Response
JSONResponse

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

new ResponseAdapter<Response, JSONResponse>(jsonResponse, getResponse)

Type parameters

Name
Response
JSONResponse

Parameters

NameType
jsonResponseJSONResponse
getResponse() => Response

Accessors

raw

get raw(): JSONResponse

Returns

JSONResponse


result

get result(): Response

Returns

Response

Methods

toJSON

toJSON(): JSONResponse

Returns

JSONResponse