toValue method
Implementation
String toValue() {
switch (this) {
case LifecycleState.pending:
return 'Pending';
case LifecycleState.pendingWait:
return 'Pending:Wait';
case LifecycleState.pendingProceed:
return 'Pending:Proceed';
case LifecycleState.quarantined:
return 'Quarantined';
case LifecycleState.inService:
return 'InService';
case LifecycleState.terminating:
return 'Terminating';
case LifecycleState.terminatingWait:
return 'Terminating:Wait';
case LifecycleState.terminatingProceed:
return 'Terminating:Proceed';
case LifecycleState.terminated:
return 'Terminated';
case LifecycleState.detaching:
return 'Detaching';
case LifecycleState.detached:
return 'Detached';
case LifecycleState.enteringStandby:
return 'EnteringStandby';
case LifecycleState.standby:
return 'Standby';
}
}