Response constructor

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

Implementation

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