AttackVolume.fromJson constructor

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

Implementation

factory AttackVolume.fromJson(Map<String, dynamic> json) {
  return AttackVolume(
    bitsPerSecond: json['BitsPerSecond'] != null
        ? AttackVolumeStatistics.fromJson(
            json['BitsPerSecond'] as Map<String, dynamic>)
        : null,
    packetsPerSecond: json['PacketsPerSecond'] != null
        ? AttackVolumeStatistics.fromJson(
            json['PacketsPerSecond'] as Map<String, dynamic>)
        : null,
    requestsPerSecond: json['RequestsPerSecond'] != null
        ? AttackVolumeStatistics.fromJson(
            json['RequestsPerSecond'] as Map<String, dynamic>)
        : null,
  );
}