fromValue static method

DocumentContentCategory fromValue(
  1. String value
)

Implementation

static DocumentContentCategory fromValue(String value) {
  for (final item in DocumentContentCategory.values) {
    if (item.wireValue == value) {
      return item;
    }
  }
  throw ArgumentError('Unknown DocumentContentCategory value: $value');
}