PrivateLinkConfig.fromJson constructor

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

Implementation

factory PrivateLinkConfig.fromJson(Map<String, dynamic> json) {
  return PrivateLinkConfig(
    privateLinkEndpoint: json['PrivateLinkEndpoint'] as String?,
    securityGroupArns: (json['SecurityGroupArns'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    subnetArns: (json['SubnetArns'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    vpcEndpointId: json['VpcEndpointId'] as String?,
  );
}