SummarizedAttackVector.fromJson constructor

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

Implementation

factory SummarizedAttackVector.fromJson(Map<String, dynamic> json) {
  return SummarizedAttackVector(
    vectorType: json['VectorType'] as String,
    vectorCounters: (json['VectorCounters'] as List?)
        ?.whereNotNull()
        .map((e) => SummarizedCounter.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}