fromValue static method

AttachmentType? fromValue(
  1. String value
)

Implementation

static AttachmentType? fromValue(String value) {
  try {
    return AttachmentType.values.firstWhere((e) => e.value == value);
  } catch (_) {
    return null;
  }
}