AwsCloudFrontDistributionDetails.fromJson constructor

AwsCloudFrontDistributionDetails.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AwsCloudFrontDistributionDetails.fromJson(Map<String, dynamic> json) {
  return AwsCloudFrontDistributionDetails(
    cacheBehaviors: json['CacheBehaviors'] != null
        ? AwsCloudFrontDistributionCacheBehaviors.fromJson(
            json['CacheBehaviors'] as Map<String, dynamic>)
        : null,
    defaultCacheBehavior: json['DefaultCacheBehavior'] != null
        ? AwsCloudFrontDistributionDefaultCacheBehavior.fromJson(
            json['DefaultCacheBehavior'] as Map<String, dynamic>)
        : null,
    defaultRootObject: json['DefaultRootObject'] as String?,
    domainName: json['DomainName'] as String?,
    eTag: json['ETag'] as String?,
    lastModifiedTime: json['LastModifiedTime'] as String?,
    logging: json['Logging'] != null
        ? AwsCloudFrontDistributionLogging.fromJson(
            json['Logging'] as Map<String, dynamic>)
        : null,
    originGroups: json['OriginGroups'] != null
        ? AwsCloudFrontDistributionOriginGroups.fromJson(
            json['OriginGroups'] as Map<String, dynamic>)
        : null,
    origins: json['Origins'] != null
        ? AwsCloudFrontDistributionOrigins.fromJson(
            json['Origins'] as Map<String, dynamic>)
        : null,
    status: json['Status'] as String?,
    webAclId: json['WebAclId'] as String?,
  );
}