toJson method
Implementation
Map<String, dynamic> toJson() {
final result$data = <String, dynamic>{};
if (_$data.containsKey('company')) {
final l$company = company;
result$data['company'] = l$company;
}
if (_$data.containsKey('position')) {
final l$position = position;
result$data['position'] = l$position;
}
if (_$data.containsKey('description')) {
final l$description = description;
result$data['description'] = l$description;
}
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;
}
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('current')) {
final l$current = current;
result$data['current'] = l$current;
}
return result$data;
}