Response( {required this.status, this.data, this.error, this.isCancelled = false}) : hasError = error != null;