toJson method
Implementation
Map<String, dynamic> toJson() {
final cloudWatchLogsLogGroupArn = this.cloudWatchLogsLogGroupArn;
final cloudWatchLogsRoleArn = this.cloudWatchLogsRoleArn;
final hasCustomEventSelectors = this.hasCustomEventSelectors;
final homeRegion = this.homeRegion;
final includeGlobalServiceEvents = this.includeGlobalServiceEvents;
final isMultiRegionTrail = this.isMultiRegionTrail;
final isOrganizationTrail = this.isOrganizationTrail;
final kmsKeyId = this.kmsKeyId;
final logFileValidationEnabled = this.logFileValidationEnabled;
final name = this.name;
final s3BucketName = this.s3BucketName;
final s3KeyPrefix = this.s3KeyPrefix;
final snsTopicArn = this.snsTopicArn;
final snsTopicName = this.snsTopicName;
final trailArn = this.trailArn;
return {
if (cloudWatchLogsLogGroupArn != null)
'CloudWatchLogsLogGroupArn': cloudWatchLogsLogGroupArn,
if (cloudWatchLogsRoleArn != null)
'CloudWatchLogsRoleArn': cloudWatchLogsRoleArn,
if (hasCustomEventSelectors != null)
'HasCustomEventSelectors': hasCustomEventSelectors,
if (homeRegion != null) 'HomeRegion': homeRegion,
if (includeGlobalServiceEvents != null)
'IncludeGlobalServiceEvents': includeGlobalServiceEvents,
if (isMultiRegionTrail != null) 'IsMultiRegionTrail': isMultiRegionTrail,
if (isOrganizationTrail != null)
'IsOrganizationTrail': isOrganizationTrail,
if (kmsKeyId != null) 'KmsKeyId': kmsKeyId,
if (logFileValidationEnabled != null)
'LogFileValidationEnabled': logFileValidationEnabled,
if (name != null) 'Name': name,
if (s3BucketName != null) 'S3BucketName': s3BucketName,
if (s3KeyPrefix != null) 'S3KeyPrefix': s3KeyPrefix,
if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn,
if (snsTopicName != null) 'SnsTopicName': snsTopicName,
if (trailArn != null) 'TrailArn': trailArn,
};
}