toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ModelPackageStatus.pending:
      return 'Pending';
    case ModelPackageStatus.inProgress:
      return 'InProgress';
    case ModelPackageStatus.completed:
      return 'Completed';
    case ModelPackageStatus.failed:
      return 'Failed';
    case ModelPackageStatus.deleting:
      return 'Deleting';
  }
}