VpcDestinationProperties.fromJson constructor

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

Implementation

factory VpcDestinationProperties.fromJson(Map<String, dynamic> json) {
  return VpcDestinationProperties(
    roleArn: json['roleArn'] as String?,
    securityGroups: (json['securityGroups'] 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?,
  );
}