toJson method
Implementation
Map<String, dynamic> toJson() {
final contactListName = this.contactListName;
final topicName = this.topicName;
return {
'ContactListName': contactListName,
if (topicName != null) 'TopicName': topicName,
};
}