Release v2
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class Profile:
|
||||
id: str
|
||||
url: str
|
||||
name: str
|
||||
username: str
|
||||
avatar_url: str
|
||||
banner_url: str | None
|
||||
|
||||
@classmethod
|
||||
def from_json(cls, json: dict) -> "Profile":
|
||||
return cls(**json)
|
||||
|
||||
def into_json(self) -> dict:
|
||||
return self.__dict__
|
||||
Reference in New Issue
Block a user