create static method

Implementation

static ClassificationProperty? create(Classification? value) {
  if (value == null) {
    return null;
  }
  if (value == Classification.other) {
    throw FormatException(
        'Unknown classification / CLASS value $value. You can set a custom value with a TextProperty.');
  }
  return ClassificationProperty('$propertyName:${value.name}');
}