exchangeForInfoWithRequestSerializableToMap<Request, ResponseDataSuccess, ResponseDataFailed, ResponseDataSuccessSerialized, ResponseDataFailedSerialized> method
Future<ExchangeResponse<ResponseDataSuccess, ResponseDataFailed> >
exchangeForInfoWithRequestSerializableToMap<Request, ResponseDataSuccess, ResponseDataFailed, ResponseDataSuccessSerialized, ResponseDataFailedSerialized>()
Exchange request for info
Possiblely can throw anything that http.get
, http.put
, http.post
, http.patch
, http.delete
throws
Other than those that throws, a valid ExchangeResponse
will always be returned, even if there's an error on the server side.
Note that if using the 'get' http method, only one level of parameters will be supported.
Implementation
Future<ExchangeResponse<ResponseDataSuccess,ResponseDataFailed>> exchangeForInfoWithRequestSerializableToMap<Request, ResponseDataSuccess, ResponseDataFailed, ResponseDataSuccessSerialized, ResponseDataFailedSerialized>(
ExchangeFormat<Request, ResponseDataSuccess, ResponseDataFailed, Map<String,dynamic>, ResponseDataSuccessSerialized, ResponseDataFailedSerialized, SettingType> exchangeFormat,
Request requestParameter
) => exchangeForInfo(exchangeFormat, requestParameter, requestSerializedToMap: (Map<String,dynamic> reqSerialized) => reqSerialized);