toVariantPropertyType method

VariantPropertyType toVariantPropertyType()

Implementation

VariantPropertyType toVariantPropertyType() {
  switch (this) {
    case 'DesiredInstanceCount':
      return VariantPropertyType.desiredInstanceCount;
    case 'DesiredWeight':
      return VariantPropertyType.desiredWeight;
    case 'DataCaptureConfig':
      return VariantPropertyType.dataCaptureConfig;
  }
  throw Exception('$this is not known in enum VariantPropertyType');
}