create serializer class snippet