toInstanceCollectionType method

InstanceCollectionType toInstanceCollectionType()

Implementation

InstanceCollectionType toInstanceCollectionType() {
  switch (this) {
    case 'INSTANCE_FLEET':
      return InstanceCollectionType.instanceFleet;
    case 'INSTANCE_GROUP':
      return InstanceCollectionType.instanceGroup;
  }
  throw Exception('$this is not known in enum InstanceCollectionType');
}