fromInt static method

NetmeraPushType? fromInt(
  1. int? value
)

Implementation

static NetmeraPushType? fromInt(int? value) {
  if (value == null) return null;
  for (final type in values) {
    if (type.value == value) return type;
  }
  return null;
}