CustomRoutingAccelerator.fromJson constructor
CustomRoutingAccelerator.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CustomRoutingAccelerator.fromJson(Map<String, dynamic> json) {
return CustomRoutingAccelerator(
acceleratorArn: json['AcceleratorArn'] as String?,
createdTime: timeStampFromJson(json['CreatedTime']),
dnsName: json['DnsName'] as String?,
enabled: json['Enabled'] as bool?,
ipAddressType: (json['IpAddressType'] as String?)?.toIpAddressType(),
ipSets: (json['IpSets'] as List?)
?.whereNotNull()
.map((e) => IpSet.fromJson(e as Map<String, dynamic>))
.toList(),
lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
name: json['Name'] as String?,
status: (json['Status'] as String?)?.toCustomRoutingAcceleratorStatus(),
);
}