GetCommentsForPullRequestOutput.fromJson constructor

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

Implementation

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