VpcConfigResponse.fromJson constructor

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

Implementation

factory VpcConfigResponse.fromJson(Map<String, dynamic> json) {
  return VpcConfigResponse(
    clusterSecurityGroupId: json['clusterSecurityGroupId'] as String?,
    endpointPrivateAccess: json['endpointPrivateAccess'] as bool?,
    endpointPublicAccess: json['endpointPublicAccess'] as bool?,
    publicAccessCidrs: (json['publicAccessCidrs'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    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?,
  );
}