toStatusCode method

StatusCode toStatusCode()

Implementation

StatusCode toStatusCode() {
  switch (this) {
    case 'InProgress':
      return StatusCode.inProgress;
    case 'Succeeded':
      return StatusCode.succeeded;
    case 'Failed':
      return StatusCode.failed;
  }
  throw Exception('$this is not known in enum StatusCode');
}