VpcConfigResponse.fromJson constructor

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

Implementation

factory VpcConfigResponse.fromJson(Map<String, dynamic> json) {
  return VpcConfigResponse(
    securityGroupIds: (json['SecurityGroupIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    subnetIds: (json['SubnetIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    vpcId: json['VpcId'] as String?,
  );
}