@@ -61,8 +61,8 @@ def to_json(self) -> JSONDict:
61
61
"communityUsername" : self .username ,
62
62
"communityProfileUrl" : self .profile_url ,
63
63
"communityCoverUrl" : self .cover_url ,
64
- "isPublic " : self .is_public ,
65
- "isFree " : self .is_free ,
64
+ "public " : self .is_public ,
65
+ "free " : self .is_free ,
66
66
"createdBy" : self .created_by ,
67
67
"communityGuidelines" : self .guidelines ,
68
68
"communityDescription" : self .description ,
@@ -88,8 +88,8 @@ def from_json(self, data: Optional[JSONDict]) -> Optional["Community"]:
88
88
self .username = data .get ("communityUsername" )
89
89
self .profile_url = data .get ("communityProfileUrl" )
90
90
self .cover_url = data .get ("communityCoverUrl" )
91
- self .is_public = data .get ("isPublic " )
92
- self .is_free = data .get ("isFree " )
91
+ self .is_public = data .get ("public " )
92
+ self .is_free = data .get ("free " )
93
93
self .created_by = data .get ("createdBy" )
94
94
self .guidelines = data .get ("communityGuidelines" )
95
95
self .description = data .get ("communityDescription" )
0 commit comments