def METHOD_NAME(self) -> cards_pb2.Card:
    # mtime & usn are set by backend
    return cards_pb2.Card(
        id=self.id,
        note_id=self.nid,
        deck_id=self.did,
        template_idx=self.ord,
        ctype=self.type,
        queue=self.queue,
        due=self.due,
        interval=self.ivl,
        ease_factor=self.factor,
        reps=self.reps,
        lapses=self.lapses,
        remaining_steps=self.left,
        original_due=self.odue,
        original_deck_id=self.odid,
        flags=self.flags,
        original_position=self.original_position,
        custom_data=self.custom_data,
    )