toCached method

Converts NetLensHttpCall to CachedNetLensHttpCall.

Implementation

CachedNetLensHttpCall toCached() =>
    CachedNetLensHttpCall(
        id,
        client: client,
        loading: loading,
        secure: secure,
        method: method,
        endpoint: endpoint,
        server: server,
        uri: uri,
        duration: duration,
      )
      ..error = error
      ..request = request
      ..response = response;