main
This code has been borrowed from https://github.com/ardalis/SmartEnum/tree/master/src/SmartEnum.JsonNet while the guys do not have a separate NuGet package yet.