getByValue static method

ContentDistributionModel? getByValue(
  1. num i
)

Implementation

static ContentDistributionModel? getByValue(num i) {
  for (var value in ContentDistributionModel.values) {
    if (value.value == i) {
      return value;
    }
  }
  return null;
}