def from_json(self, json): chat = Chat(json['id']) for jFeed in json['feeds']: feed: Feed = Feed(jFeed['key'], jFeed['url']) feed.lastUpdate = jFeed['lastUpdate'] feed.addFilterBy(jFeed['filterBy']) chat.addfeed(feed) return chat