VPCConfigResponse.fromJson constructor

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

Implementation

factory VPCConfigResponse.fromJson(Map<String, dynamic> json) {
  return VPCConfigResponse(
    assignPublicIp: json['assignPublicIp'] as bool?,
    securityGroups: (json['securityGroups'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    subnets: (json['subnets'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    vpcId: json['vpcId'] as String?,
  );
}