Evidence.fromJson constructor

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

Implementation

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