toJson method
Implementation
Map<String, dynamic> toJson() {
final result$data = <String, dynamic>{};
if (_$data.containsKey('level')) {
final l$level = level;
result$data['level'] =
l$level == null ? null : toJson$Enum$AcademicLevel(l$level);
}
if (_$data.containsKey('name')) {
final l$name = name;
result$data['name'] = l$name;
}
if (_$data.containsKey('description')) {
final l$description = description;
result$data['description'] = l$description;
}
if (_$data.containsKey('tags')) {
final l$tags = tags;
result$data['tags'] = l$tags?.map((e) => e).toList();
}
if (_$data.containsKey('from')) {
final l$from = from;
result$data['from'] = l$from == null ? null : dateTimeToJson(l$from);
}
if (_$data.containsKey('to')) {
final l$to = to;
result$data['to'] = l$to == null ? null : dateTimeToJson(l$to);
}
if (_$data.containsKey('graduated')) {
final l$graduated = graduated;
result$data['graduated'] = l$graduated;
}
if (_$data.containsKey('city')) {
final l$city = city;
result$data['city'] = l$city;
}
if (_$data.containsKey('country')) {
final l$country = country;
result$data['country'] = l$country;
}
return result$data;
}