map

fun <I, O, P> Response<I, P>?.map(mapper: (I?) -> O?): Response<O, P>?

Maps the Response.data from one type to another. Keeps Response.status, Response.progress and Response.exception unchanged.