this is my model class
class Type(enum.Enum): Certified = \"certified\" Non_Certified = \"non-certified\" class Status(enum.Enum): Approved = \
You can use Marshmallow custom method fields
from marshmallow import fields class CourseSchema(ModelSchema): type = fields.Method("get_course_type") def get_course_type(self, obj): return obj.type.value class Meta: model = Course sqla_session = session