GetCommentsForComparedCommitOutput.fromJson constructor

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

Implementation

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