GetPullRequestApprovalStatesOutput.fromJson constructor

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

Implementation

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