PhysicalConnectionRequirements.fromJson constructor

PhysicalConnectionRequirements.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PhysicalConnectionRequirements.fromJson(Map<String, dynamic> json) {
  return PhysicalConnectionRequirements(
    availabilityZone: json['AvailabilityZone'] as String?,
    securityGroupIdList: (json['SecurityGroupIdList'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    subnetId: json['SubnetId'] as String?,
  );
}