DataSourceVpcConfiguration.fromJson constructor

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

Implementation

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