ListCodeReviewsResponse.fromJson constructor

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

Implementation

factory ListCodeReviewsResponse.fromJson(Map<String, dynamic> json) {
  return ListCodeReviewsResponse(
    codeReviewSummaries: (json['CodeReviewSummaries'] as List?)
        ?.whereNotNull()
        .map((e) => CodeReviewSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}