toRouteStatusCode method

RouteStatusCode toRouteStatusCode()

Implementation

RouteStatusCode toRouteStatusCode() {
  switch (this) {
    case 'ACTIVE':
      return RouteStatusCode.active;
    case 'DELETED':
      return RouteStatusCode.deleted;
    case 'INACTIVE':
      return RouteStatusCode.inactive;
  }
  throw Exception('$this is not known in enum RouteStatusCode');
}