toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final includedStates = this.includedStates;
  final customKnowledgeArticleTypeConfigurations =
      this.customKnowledgeArticleTypeConfigurations;
  final standardKnowledgeArticleTypeConfiguration =
      this.standardKnowledgeArticleTypeConfiguration;
  return {
    'IncludedStates': includedStates.map((e) => e.toValue()).toList(),
    if (customKnowledgeArticleTypeConfigurations != null)
      'CustomKnowledgeArticleTypeConfigurations':
          customKnowledgeArticleTypeConfigurations,
    if (standardKnowledgeArticleTypeConfiguration != null)
      'StandardKnowledgeArticleTypeConfiguration':
          standardKnowledgeArticleTypeConfiguration,
  };
}