DescribePullRequestEventsOutput.fromJson constructor

DescribePullRequestEventsOutput.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DescribePullRequestEventsOutput.fromJson(Map<String, dynamic> json) {
  return DescribePullRequestEventsOutput(
    pullRequestEvents: (json['pullRequestEvents'] as List)
        .whereNotNull()
        .map((e) => PullRequestEvent.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}