DistributionConfiguration.fromJson constructor
DistributionConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DistributionConfiguration.fromJson(Map<String, dynamic> json) {
return DistributionConfiguration(
timeoutMinutes: json['timeoutMinutes'] as int,
arn: json['arn'] as String?,
dateCreated: json['dateCreated'] as String?,
dateUpdated: json['dateUpdated'] as String?,
description: json['description'] as String?,
distributions: (json['distributions'] as List?)
?.whereNotNull()
.map((e) => Distribution.fromJson(e as Map<String, dynamic>))
.toList(),
name: json['name'] as String?,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}