VpcConfigurationDescription.fromJson constructor

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

Implementation

factory VpcConfigurationDescription.fromJson(Map<String, dynamic> json) {
  return VpcConfigurationDescription(
    roleARN: json['RoleARN'] as String,
    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,
  );
}