eventPayload property

String? eventPayload

The complete webhook event payload (JSON formatted).

See https://developer.github.com/v3/activity/events/types

Implementation

String? get eventPayload {
  final path = _env('GITHUB_EVENT_PATH');
  if (path == null) return null;
  final file = File(path);
  return file.existsSync() ? file.readAsStringSync() : null;
}