toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (admissionWhitelistPatterns != null)
        'admissionWhitelistPatterns': admissionWhitelistPatterns!,
      if (clusterAdmissionRules != null)
        'clusterAdmissionRules': clusterAdmissionRules!,
      if (defaultAdmissionRule != null)
        'defaultAdmissionRule': defaultAdmissionRule!,
      if (description != null) 'description': description!,
      if (etag != null) 'etag': etag!,
      if (globalPolicyEvaluationMode != null)
        'globalPolicyEvaluationMode': globalPolicyEvaluationMode!,
      if (istioServiceIdentityAdmissionRules != null)
        'istioServiceIdentityAdmissionRules':
            istioServiceIdentityAdmissionRules!,
      if (kubernetesNamespaceAdmissionRules != null)
        'kubernetesNamespaceAdmissionRules':
            kubernetesNamespaceAdmissionRules!,
      if (kubernetesServiceAccountAdmissionRules != null)
        'kubernetesServiceAccountAdmissionRules':
            kubernetesServiceAccountAdmissionRules!,
      if (name != null) 'name': name!,
      if (updateTime != null) 'updateTime': updateTime!,
    };