toJson method
Convert this object to a JSON object.
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
'company': company,
'companyID': companyID,
// TODO: company size should be an int, not a double.
'companySize': companySize?.toDouble(),
'description': description,
'endDate': endDate?.toString(),
'industry': industry,
'isCurrent': isCurrent,
'location': location,
'startDate': startDate?.toString(),
'title': title,
};
}