fromString static method
Convert from the string representation of a LanguageType to
the corresponding instance, or null if none match.
Implementation
static LanguageType? fromString(final String value) => switch (value) {
'data' => LanguageType.data,
'programming' => LanguageType.programming,
'markup' => LanguageType.markup,
'prose' => LanguageType.prose,
_ => null,
};