I think that should override `fields()` and `extraFields()` as necessary to serialize data in a RESTFul API.