SecurityDetails.fromJson constructor

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

Implementation

factory SecurityDetails.fromJson(Map<String, dynamic> json) {
  return SecurityDetails(
    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(),
  );
}