toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
if (name != null) {
json[r'name'] = name;
}
if (comment != null) {
json[r'comment'] = comment;
}
if (startDate != null) {
json[r'startDate'] = startDate;
}
if (endDate != null) {
json[r'endDate'] = endDate;
}
if (encryptedSelf != null) {
json[r'encryptedSelf'] = encryptedSelf;
}
return json;
}