mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-05-13 13:08:46 +02:00
14 lines
191 B
Python
14 lines
191 B
Python
from dataclasses import asdict, dataclass
|
|
|
|
|
|
@dataclass
|
|
class News:
|
|
id: str
|
|
title: str
|
|
date: str
|
|
text: str
|
|
source_url: str
|
|
|
|
def dict(self):
|
|
return asdict(self)
|