AnalysedData.fromJson constructor

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

Creates an AnalysedData object from a JSON map.

Implementation

factory AnalysedData.fromJson(Map<String, dynamic> json) {
    return AnalysedData(
      component: json['compartment'],
      testNo: json['test_no'],
      courseName: json['course_name'],
      courseCode: json['course_code'],
      semester: json['semester'],
      qpPattern: List<Map<String, dynamic>>.from(json['qp_pattern']),
    );
  }