toGameSessionPlacementState method
Implementation
GameSessionPlacementState toGameSessionPlacementState() {
switch (this) {
case 'PENDING':
return GameSessionPlacementState.pending;
case 'FULFILLED':
return GameSessionPlacementState.fulfilled;
case 'CANCELLED':
return GameSessionPlacementState.cancelled;
case 'TIMED_OUT':
return GameSessionPlacementState.timedOut;
case 'FAILED':
return GameSessionPlacementState.failed;
}
throw Exception('$this is not known in enum GameSessionPlacementState');
}