fromSpecString static method
Parses a JSON-LD spec string ('i18n-datatype' or 'compound-literal')
into the corresponding enum value. Returns null for unrecognized input.
Implementation
static RdfDirection? fromSpecString(String? value) => switch (value) {
'i18n-datatype' => RdfDirection.i18nDatatype,
'compound-literal' => RdfDirection.compoundLiteral,
_ => null,
};