ThreatIntelligenceDetail.fromJson constructor

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

Implementation

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