instantiate<M extends MLiteral<String> > method
Implementation
M instantiate<M extends MLiteral<String>>(dynamic json, {required String type}) {
final MEnumFactory<M> factory = _factories[type] as MEnumFactory<M>? ?? nullPointer("No enum factory found for $type}");
return factory(json as String);
}