Thread
#serialization
    m

    Marc Knaup

    3 years ago
    Don't enums have a
    .serializer()
    function by default?
    s

    sandwwraith

    3 years ago
    No, they're not modified by the plugin
    m

    Marc Knaup

    3 years ago
    How do I get their default serializer then?
    s

    sandwwraith

    3 years ago
    They're treated somehow as primitives – there is a
    encodeEnum
    function, just like
    encodeInt
    which does not accept serializer. If you need to treat it like an object, take a look at EnumSerializer/CommonEnumSerializer