Getting Category's custom field value from Topic

Here code it’s adding a new field to the post serializer. You need something similar, but adding a new field to the topic serializer I think.