toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final hostUrl = this.hostUrl;
  final secretArn = this.secretArn;
  final serviceNowBuildVersion = this.serviceNowBuildVersion;
  final knowledgeArticleConfiguration = this.knowledgeArticleConfiguration;
  final serviceCatalogConfiguration = this.serviceCatalogConfiguration;
  return {
    'HostUrl': hostUrl,
    'SecretArn': secretArn,
    'ServiceNowBuildVersion': serviceNowBuildVersion.toValue(),
    if (knowledgeArticleConfiguration != null)
      'KnowledgeArticleConfiguration': knowledgeArticleConfiguration,
    if (serviceCatalogConfiguration != null)
      'ServiceCatalogConfiguration': serviceCatalogConfiguration,
  };
}