AIResponse constructor
Implementation
AIResponse(Map response) {
this._status = new Status(response["status"]);
if (this._status.getCode != 200) {
print(this._status.getErrorType);
print(this._status.getErrorDetails);
throw new FormatException(this._status.getErrorDetails);
} else {
this._id = response["id"];
this._timestamp = response["timestamp"];
this._lang = response["lang"];
this._result = new Result(response["result"]);
}
}