toJson method

Map<String, dynamic> toJson()

Implementation

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