PullRequestTarget.fromJson constructor

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

Implementation

factory PullRequestTarget.fromJson(Map<String, dynamic> json) {
  return PullRequestTarget(
    destinationCommit: json['destinationCommit'] as String?,
    destinationReference: json['destinationReference'] as String?,
    mergeBase: json['mergeBase'] as String?,
    mergeMetadata: json['mergeMetadata'] != null
        ? MergeMetadata.fromJson(
            json['mergeMetadata'] as Map<String, dynamic>)
        : null,
    repositoryName: json['repositoryName'] as String?,
    sourceCommit: json['sourceCommit'] as String?,
    sourceReference: json['sourceReference'] as String?,
  );
}