Skip to content

Commit

Permalink
Update curseimage.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Advik-B committed May 21, 2024
1 parent 6f44882 commit f6408bc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions curseforge/classes/curseimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,14 @@ class CurseImage(CurseObject):
thumbnail_url: str
url: str

@staticmethod
def from_dict(data: dict):
return CurseImage(
id=data.get("id"),
url=data.get("url"),
description=data.get("description"),
thumbnail_url=data.get("thumbnailUrl"),
title=data.get("title"),
modId=data.get("modId")

)

0 comments on commit f6408bc

Please sign in to comment.