Pass model object into serializer method.