Accelerator.fromJson constructor
Accelerator.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Accelerator.fromJson(Map<String, dynamic> json) {
return Accelerator(
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?)?.toAcceleratorStatus(),
);
}