toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case OTAUpdateStatus.createPending:
      return 'CREATE_PENDING';
    case OTAUpdateStatus.createInProgress:
      return 'CREATE_IN_PROGRESS';
    case OTAUpdateStatus.createComplete:
      return 'CREATE_COMPLETE';
    case OTAUpdateStatus.createFailed:
      return 'CREATE_FAILED';
  }
}