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(body["recipient"]),
         body.get("pingedMainComment"),
         InlineComment.parse_many(body["pingedInlineComments"]),
         body["transactionLink"],
     )
Exemple #3
0
 def parse(cls, body: Dict):
     return cls(
         body.get("mainComment"),
         InlineComment.parse_many(body["inlineComments"]),
         body["transactionLink"],
         [Recipient.parse(reviewer) for reviewer in body["reviewers"]],
     )
Exemple #4
0
 def parse(cls, body: Dict):
     return cls(
         body.get("mainComment"),
         InlineComment.parse_many(body["inlineComments"]),
         body["transactionLink"],
         body.get("landoLink"),
         body["isReadyToLand"],
         Recipient.parse_optional(body.get("author")),
         [Recipient.parse(reviewer) for reviewer in body["reviewers"]],
     )
 def parse(cls, body: Dict):
     return cls(
         [Recipient.parse(reviewer) for reviewer in body["reviewers"]],
         body["commentCount"],
         body["transactionLink"],
     )
 def parse(cls, body: Dict):
     return cls(
         Recipient.parse(body["recipient"]),
         body["transactionLink"],
     )