responseData<T> function

T responseData<T>(
  1. Response response
)

Convert data of Response to T

Implementation

T responseData<T>(Response<dynamic> response) => response.data as T;