toCopyJobState method

CopyJobState toCopyJobState()

Implementation

CopyJobState toCopyJobState() {
  switch (this) {
    case 'CREATED':
      return CopyJobState.created;
    case 'RUNNING':
      return CopyJobState.running;
    case 'COMPLETED':
      return CopyJobState.completed;
    case 'FAILED':
      return CopyJobState.failed;
  }
  throw Exception('$this is not known in enum CopyJobState');
}