DalgeurakWarning.fromJson constructor

DalgeurakWarning.fromJson(
  1. dynamic json
)

Implementation

DalgeurakWarning.fromJson(dynamic json) {
  _id = json['_id'];
  _warningTypeList = (json['type'] as List).cast<String>().map((v) => v.convertStudentWarningType).cast<StudentWarningType>().toList();
  _reason = json['reason'];
  _studentUid = json['student'];
  _date = DateTime.parse(json['date']);
}