DescribeGatewayInformationOutput.fromJson constructor
DescribeGatewayInformationOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeGatewayInformationOutput.fromJson(Map<String, dynamic> json) {
return DescribeGatewayInformationOutput(
cloudWatchLogGroupARN: json['CloudWatchLogGroupARN'] as String?,
deprecationDate: json['DeprecationDate'] as String?,
ec2InstanceId: json['Ec2InstanceId'] as String?,
ec2InstanceRegion: json['Ec2InstanceRegion'] as String?,
endpointType: json['EndpointType'] as String?,
gatewayARN: json['GatewayARN'] as String?,
gatewayId: json['GatewayId'] as String?,
gatewayName: json['GatewayName'] as String?,
gatewayNetworkInterfaces: (json['GatewayNetworkInterfaces'] as List?)
?.whereNotNull()
.map((e) => NetworkInterface.fromJson(e as Map<String, dynamic>))
.toList(),
gatewayState: json['GatewayState'] as String?,
gatewayTimezone: json['GatewayTimezone'] as String?,
gatewayType: json['GatewayType'] as String?,
hostEnvironment:
(json['HostEnvironment'] as String?)?.toHostEnvironment(),
lastSoftwareUpdate: json['LastSoftwareUpdate'] as String?,
nextUpdateAvailabilityDate: json['NextUpdateAvailabilityDate'] as String?,
softwareUpdatesEndDate: json['SoftwareUpdatesEndDate'] as String?,
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
vPCEndpoint: json['VPCEndpoint'] as String?,
);
}