AttackSummary.fromJson constructor
AttackSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AttackSummary.fromJson(Map<String, dynamic> json) {
return AttackSummary(
attackId: json['AttackId'] as String?,
attackVectors: (json['AttackVectors'] as List?)
?.whereNotNull()
.map((e) =>
AttackVectorDescription.fromJson(e as Map<String, dynamic>))
.toList(),
endTime: timeStampFromJson(json['EndTime']),
resourceArn: json['ResourceArn'] as String?,
startTime: timeStampFromJson(json['StartTime']),
);
}