serializer property
Serializer<AnilistMediaType>
serializer
Example of how to make an EnumClass
serializable.
Declare a static final Serializers
field called serializer
.
The built_value code generator will provide the implementation. You need
to do this for every type you want to serialize.
Implementation
static Serializer<AnilistMediaType> get serializer =>
_$anilistMediaTypeSerializer;