Response constructor

Response(
  1. int _token,
  2. String jsonStr
)

Implementation

Response(this._token, String jsonStr) {
  if (jsonStr.isNotEmpty) {
    Map fullResponse = json.decode(jsonStr);
    this._type = fullResponse['t'];
    this._data = fullResponse['r'];
    this._backtrace = fullResponse['b'];
    this._profile = fullResponse['p'];
    this._notes = fullResponse['n'];
    this._errorType = fullResponse['e'];
  }
}