toChangeSetStatus method

ChangeSetStatus toChangeSetStatus()

Implementation

ChangeSetStatus toChangeSetStatus() {
  switch (this) {
    case 'CREATE_PENDING':
      return ChangeSetStatus.createPending;
    case 'CREATE_IN_PROGRESS':
      return ChangeSetStatus.createInProgress;
    case 'CREATE_COMPLETE':
      return ChangeSetStatus.createComplete;
    case 'DELETE_PENDING':
      return ChangeSetStatus.deletePending;
    case 'DELETE_IN_PROGRESS':
      return ChangeSetStatus.deleteInProgress;
    case 'DELETE_COMPLETE':
      return ChangeSetStatus.deleteComplete;
    case 'DELETE_FAILED':
      return ChangeSetStatus.deleteFailed;
    case 'FAILED':
      return ChangeSetStatus.failed;
  }
  throw Exception('$this is not known in enum ChangeSetStatus');
}