toCreateAccountState method

CreateAccountState toCreateAccountState()

Implementation

CreateAccountState toCreateAccountState() {
  switch (this) {
    case 'IN_PROGRESS':
      return CreateAccountState.inProgress;
    case 'SUCCEEDED':
      return CreateAccountState.succeeded;
    case 'FAILED':
      return CreateAccountState.failed;
  }
  throw Exception('$this is not known in enum CreateAccountState');
}