ReviewReport.fromJson constructor

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

Implementation

factory ReviewReport.fromJson(Map<String, dynamic> json) {
  return ReviewReport(
    reviewActions: (json['ReviewActions'] as List?)
        ?.whereNotNull()
        .map((e) => ReviewActionDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
    reviewResults: (json['ReviewResults'] as List?)
        ?.whereNotNull()
        .map((e) => ReviewResultDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}