PostCommentForPullRequestOutput.fromJson constructor

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

Implementation

factory PostCommentForPullRequestOutput.fromJson(Map<String, dynamic> json) {
  return PostCommentForPullRequestOutput(
    afterBlobId: json['afterBlobId'] as String?,
    afterCommitId: json['afterCommitId'] as String?,
    beforeBlobId: json['beforeBlobId'] as String?,
    beforeCommitId: json['beforeCommitId'] as String?,
    comment: json['comment'] != null
        ? Comment.fromJson(json['comment'] as Map<String, dynamic>)
        : null,
    location: json['location'] != null
        ? Location.fromJson(json['location'] as Map<String, dynamic>)
        : null,
    pullRequestId: json['pullRequestId'] as String?,
    repositoryName: json['repositoryName'] as String?,
  );
}