fromJson static method
Creates a WebhookPayload instance from a JSON map.
Implementation
static WebhookPayload fromJson(Map json) {
return WebhookPayload(
json,
repository: PayloadRepository.fromJson(json['repository']),
issue: Issue.fromJson(json['issue']),
pullRequest: Issue.fromJson(json['pull_request']),
sender: Sender.fromJson(json['sender']),
action: json['action'],
installation: Installation.fromJson(json['installation']),
comment: Comment.fromJson(json['comment']),
);
}