toErrorResponseState method

ErrorResponseState toErrorResponseState()

Implementation

ErrorResponseState toErrorResponseState() {
  return ErrorResponseState.values.firstWhere((ErrorResponseState e) {
    return e.name.toString().toLowerCase() == this.toLowerCase();
  }, orElse: () {
    return ErrorResponseState.none;
  });
}