Trail.fromJson constructor
Implementation
factory Trail.fromJson(Map<String, dynamic> json) {
return Trail(
cloudWatchLogsLogGroupArn: json['CloudWatchLogsLogGroupArn'] as String?,
cloudWatchLogsRoleArn: json['CloudWatchLogsRoleArn'] as String?,
hasCustomEventSelectors: json['HasCustomEventSelectors'] as bool?,
hasInsightSelectors: json['HasInsightSelectors'] as bool?,
homeRegion: json['HomeRegion'] as String?,
includeGlobalServiceEvents: json['IncludeGlobalServiceEvents'] as bool?,
isMultiRegionTrail: json['IsMultiRegionTrail'] as bool?,
isOrganizationTrail: json['IsOrganizationTrail'] as bool?,
kmsKeyId: json['KmsKeyId'] as String?,
logFileValidationEnabled: json['LogFileValidationEnabled'] as bool?,
name: json['Name'] as String?,
s3BucketName: json['S3BucketName'] as String?,
s3KeyPrefix: json['S3KeyPrefix'] as String?,
snsTopicARN: json['SnsTopicARN'] as String?,
snsTopicName: json['SnsTopicName'] as String?,
trailARN: json['TrailARN'] as String?,
);
}