toPlacementConstraintType method

PlacementConstraintType toPlacementConstraintType()

Implementation

PlacementConstraintType toPlacementConstraintType() {
  switch (this) {
    case 'distinctInstance':
      return PlacementConstraintType.distinctInstance;
    case 'memberOf':
      return PlacementConstraintType.memberOf;
  }
  throw Exception('$this is not known in enum PlacementConstraintType');
}