toGameServerInstanceStatus method
Implementation
GameServerInstanceStatus toGameServerInstanceStatus() {
switch (this) {
case 'ACTIVE':
return GameServerInstanceStatus.active;
case 'DRAINING':
return GameServerInstanceStatus.draining;
case 'SPOT_TERMINATING':
return GameServerInstanceStatus.spotTerminating;
}
throw Exception('$this is not known in enum GameServerInstanceStatus');
}