class PendingReward:
    def __init__(self, _id, child_id, child_name, child_image_id, reward_id, reward_name, reward_image_id):
        self.id = _id
        self.child_id = child_id
        self.child_name = child_name
        self.child_image_id = child_image_id
        self.reward_id = reward_id
        self.reward_name = reward_name
        self.reward_image_id = reward_image_id

    def to_dict(self):
        return {
            'id': self.id,
            'child_id': self.child_id,
            'child_name': self.child_name,
            'child_image_id': self.child_image_id,
            'reward_id': self.reward_id,
            'reward_name': self.reward_name,
            'reward_image_id': self.reward_image_id
        }