toRouteStatusCode method

RouteStatusCode toRouteStatusCode()

Implementation

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