toJson method
Implementation
Map<String, dynamic> toJson() {
final excludeResourceTags = this.excludeResourceTags;
final policyName = this.policyName;
final remediationEnabled = this.remediationEnabled;
final resourceType = this.resourceType;
final securityServicePolicyData = this.securityServicePolicyData;
final excludeMap = this.excludeMap;
final includeMap = this.includeMap;
final policyId = this.policyId;
final policyUpdateToken = this.policyUpdateToken;
final resourceTags = this.resourceTags;
final resourceTypeList = this.resourceTypeList;
return {
'ExcludeResourceTags': excludeResourceTags,
'PolicyName': policyName,
'RemediationEnabled': remediationEnabled,
'ResourceType': resourceType,
'SecurityServicePolicyData': securityServicePolicyData,
if (excludeMap != null)
'ExcludeMap': excludeMap.map((k, e) => MapEntry(k.toValue(), e)),
if (includeMap != null)
'IncludeMap': includeMap.map((k, e) => MapEntry(k.toValue(), e)),
if (policyId != null) 'PolicyId': policyId,
if (policyUpdateToken != null) 'PolicyUpdateToken': policyUpdateToken,
if (resourceTags != null) 'ResourceTags': resourceTags,
if (resourceTypeList != null) 'ResourceTypeList': resourceTypeList,
};
}