Score.fromJson constructor

Score.fromJson(
  1. Map<String, dynamic> j
)

Implementation

factory Score.fromJson(Map<String, dynamic> j) => Score(
      _int(j['value']) ?? 0,
      Grade.from(j['grade']),
      _int(j['weights_run']) ?? 0,
      _objList(j['axes']).map(AxisScore.fromJson).toList(),
      j['structural'] == null
          ? null
          : StructuralReport.fromJson(_obj(j['structural'])),
      j['uec'] == null ? null : UecReport.fromJson(_obj(j['uec'])),
      j['iso15415'] == null
          ? null
          : Iso15415Report.fromJson(_obj(j['iso15415'])),
    );