PullRequestMergedStateChangedEventMetadata.fromJson constructor

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

Implementation

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