AuthyoResponseModel.withError constructor

AuthyoResponseModel.withError(
  1. Map<String, dynamic> json
)

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();
}