ChopperResponseResultX<BodyType> extension

Converts a Chopper Future<Response<BodyType>> into a Future<Result<BodyType>>.

on

Methods

toResult({ChopperFailureMapper<BodyType>? failureMapper}) Future<Result<BodyType>>

Available on Future<Response<BodyType>>, provided by the ChopperResponseResultX extension

Awaits the response and folds it into a Result.