Skip to main content

LMResponse

LMResponse<T> caters the base response for all the APIs. Each data function has its own response model which are wrapped inside LMResponse<T>.

note

All the response variables throughout the documentation are of type LMResponse<T>.

The following table shows the structure of the wrapper LMResponse<T>.

VARIABLETYPEDESCRIPTIONOPTIONAL
successbooleantrue if the API call was successful, false otherwise.
errorMessagestringError message in case the API fails.✔️
dataTGeneric type that holds the data received in API response.✔️