ListSecurityProfilesForTargetResponse.fromJson constructor

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

Implementation

factory ListSecurityProfilesForTargetResponse.fromJson(
    Map<String, dynamic> json) {
  return ListSecurityProfilesForTargetResponse(
    nextToken: json['nextToken'] as String?,
    securityProfileTargetMappings: (json['securityProfileTargetMappings']
            as List?)
        ?.whereNotNull()
        .map((e) =>
            SecurityProfileTargetMapping.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}