discontinuedPackage aws_securityhub_api has been discontinued and replaced by aws_client.
NetworkPathComponentDetails.fromJson constructor
NetworkPathComponentDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory NetworkPathComponentDetails.fromJson(Map<String, dynamic> json) {
return NetworkPathComponentDetails(
address: (json['Address'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
portRanges: (json['PortRanges'] as List?)
?.whereNotNull()
.map((e) => PortRange.fromJson(e as Map<String, dynamic>))
.toList(),
);
}