toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'id': id,
'text': text.toJson(),
'completed_by': completedBy?.toJson(),
'completion_date': completionDate,
};