ListReviewPolicyResultsForHITResponse.fromJson constructor

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

Implementation

factory ListReviewPolicyResultsForHITResponse.fromJson(
    Map<String, dynamic> json) {
  return ListReviewPolicyResultsForHITResponse(
    assignmentReviewPolicy: json['AssignmentReviewPolicy'] != null
        ? ReviewPolicy.fromJson(
            json['AssignmentReviewPolicy'] as Map<String, dynamic>)
        : null,
    assignmentReviewReport: json['AssignmentReviewReport'] != null
        ? ReviewReport.fromJson(
            json['AssignmentReviewReport'] as Map<String, dynamic>)
        : null,
    hITId: json['HITId'] as String?,
    hITReviewPolicy: json['HITReviewPolicy'] != null
        ? ReviewPolicy.fromJson(
            json['HITReviewPolicy'] as Map<String, dynamic>)
        : null,
    hITReviewReport: json['HITReviewReport'] != null
        ? ReviewReport.fromJson(
            json['HITReviewReport'] as Map<String, dynamic>)
        : null,
    nextToken: json['NextToken'] as String?,
  );
}