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"],
     )
Exemple #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"],
     )
Exemple #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"]),
     )
Exemple #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"]],
     )
Exemple #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"],
     )