def METHOD_NAME(self, resource):
    representation = {}
    for field, field_spec in self.field_definitions.items():
        field_output = field_spec['output']
        if not field_spec.get('write_only', False):
            representation[field] = field_output(resource)
    return representation