dataFromPlainHttpResponse method

void dataFromPlainHttpResponse(
  1. Response resp
)

Implementation

void dataFromPlainHttpResponse(http.Response resp) {
  bool isSingleResult = resp.body != null && resp.body.trim().startsWith("{");
  if (isSingleResult) {
    singleResult = DfConverter.jsonStringToDict(resp.body);
  }
  else {
    result = DfConverter.jsonStringToDictList(resp.body);
    if (result == null)
      result = List<Map<String,dynamic>>();
  }
}