toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (startDate != null) {
    json[r'startDate'] = startDate;
  }
  if (endDate != null) {
    json[r'endDate'] = endDate;
  }
  if (school != null) {
    json[r'school'] = school;
  }
  if (typeOfEducation != null) {
    json[r'typeOfEducation'] = typeOfEducation;
  }
  return json;
}