def parse(cls, body: Dict):
     return cls(
         Recipient.parse_optional(body.get("author")),
         [Recipient.parse(reviewer) for reviewer in body["reviewers"]],
         body["commentCount"],
         body["transactionLink"],
     )
Esempio n. 2
0
 def parse(cls, body: dict):
     return cls(
         Recipient.parse_optional(body.get("author")),
         Recipient.parse_many(body["reviewers"]),
         Recipient.parse_many(body["subscribers"]),
         body["transactionLink"],
     )
Esempio n. 3
0
 def parse(cls, body: Dict):
     return cls(
         body["isReadyToLand"],
         body["isTitleChanged"],
         body["isBugChanged"],
         Recipient.parse_optional(body.get("author")),
         MetadataEditedReviewer.parse_many(body["reviewers"]),
     )
Esempio n. 4
0
 def parse(cls, body: Dict):
     return cls(
         body.get("mainComment"),
         InlineComment.parse_many(body["inlineComments"]),
         body["transactionLink"],
         Recipient.parse_optional(body.get("author")),
         [Recipient.parse(reviewer) for reviewer in body["reviewers"]],
     )
Esempio n. 5
0
 def parse(cls, body: dict):
     return cls(
         body.get("landoLink"),
         body["isReadyToLand"],
         Recipient.parse_optional(body.get("author")),
         Recipient.parse_many(body["reviewers"]),
         Recipient.parse_many(body["subscribers"]),
         body["commentCount"],
         body["transactionLink"],
     )