toValue method
Implementation
String toValue() {
switch (this) {
case CreateAccountState.inProgress:
return 'IN_PROGRESS';
case CreateAccountState.succeeded:
return 'SUCCEEDED';
case CreateAccountState.failed:
return 'FAILED';
}
}