serializer property

Serializer<AnilistMediaSeason> 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<AnilistMediaSeason> get serializer =>
    _$anilistMediaSeasonSerializer;