success<F> static method

RequestResponse<F> success<F>(
  1. F data, {
  2. int? httpCode,
  3. Response<String>? rawResponse,
})

Returns a success RequestResponse instance

isSuccess is set to true with a data of type F and with httpCode as 200

Implementation

static RequestResponse<F> success<F>(F data,
        {int? httpCode, Response<String>? rawResponse}) =>
    RequestResponse<F>(httpCode ?? 200, true, data, rawResponse: rawResponse);