convertResponse<BodyType, InnerType> method

FutureOr<Response<BodyType>> convertResponse <BodyType, InnerType>(
  1. Response response
)

BodyType is the expected type of your response ex: String or CustomObject

In the case of BodyType is a List or BuildList InnerType will be the type of the generic ex: convertResponse<List<CustomObject>, CustomObject>(response)

Implementation

FutureOr<Response<BodyType>> convertResponse<BodyType, InnerType>(
  Response response,
);