success<F> static method
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);