SubResourceSummary.fromJson constructor
SubResourceSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SubResourceSummary.fromJson(Map<String, dynamic> json) {
return SubResourceSummary(
attackVectors: (json['AttackVectors'] as List?)
?.whereNotNull()
.map(
(e) => SummarizedAttackVector.fromJson(e as Map<String, dynamic>))
.toList(),
counters: (json['Counters'] as List?)
?.whereNotNull()
.map((e) => SummarizedCounter.fromJson(e as Map<String, dynamic>))
.toList(),
id: json['Id'] as String?,
type: (json['Type'] as String?)?.toSubResourceType(),
);
}