toOTAUpdateStatus method

OTAUpdateStatus toOTAUpdateStatus()

Implementation

OTAUpdateStatus toOTAUpdateStatus() {
  switch (this) {
    case 'CREATE_PENDING':
      return OTAUpdateStatus.createPending;
    case 'CREATE_IN_PROGRESS':
      return OTAUpdateStatus.createInProgress;
    case 'CREATE_COMPLETE':
      return OTAUpdateStatus.createComplete;
    case 'CREATE_FAILED':
      return OTAUpdateStatus.createFailed;
  }
  throw Exception('$this is not known in enum OTAUpdateStatus');
}