toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (detectionTypes != null) 'detectionTypes': detectionTypes!,
      if (displayName != null) 'displayName': displayName!,
      if (firstDetectedTime != null) 'firstDetectedTime': firstDetectedTime!,
      if (lastDetectedTime != null) 'lastDetectedTime': lastDetectedTime!,
      if (lastObservabilityChangeTime != null)
        'lastObservabilityChangeTime': lastObservabilityChangeTime!,
      if (name != null) 'name': name!,
      if (observability != null) 'observability': observability!,
      if (riskLevel != null) 'riskLevel': riskLevel!,
      if (trafficCount != null) 'trafficCount': trafficCount!,
    };