toGameServerGroupStatus method

GameServerGroupStatus toGameServerGroupStatus()

Implementation

GameServerGroupStatus toGameServerGroupStatus() {
  switch (this) {
    case 'NEW':
      return GameServerGroupStatus.$new;
    case 'ACTIVATING':
      return GameServerGroupStatus.activating;
    case 'ACTIVE':
      return GameServerGroupStatus.active;
    case 'DELETE_SCHEDULED':
      return GameServerGroupStatus.deleteScheduled;
    case 'DELETING':
      return GameServerGroupStatus.deleting;
    case 'DELETED':
      return GameServerGroupStatus.deleted;
    case 'ERROR':
      return GameServerGroupStatus.error;
  }
  throw Exception('$this is not known in enum GameServerGroupStatus');
}