statusCode method

int statusCode()

Implementation

int statusCode() {
  if(isEmpty) {
    return -1;
  }
  var error = this['error'];
  if(error != null) {
    return error['code'];
  }
  var data = this['data']['response']['status'];
  return data;
}