AuthyoResponseModel.withError constructor
Creates a response model from an error response.
Implementation
AuthyoResponseModel.withError(Map<String, dynamic> json) {
success = false;
error = json['error'].toString();
errorCode = json['errorCode'].toString();
}