DescribeAttackStatisticsResponse.fromJson constructor

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

Implementation

factory DescribeAttackStatisticsResponse.fromJson(Map<String, dynamic> json) {
  return DescribeAttackStatisticsResponse(
    dataItems: (json['DataItems'] as List)
        .whereNotNull()
        .map((e) =>
            AttackStatisticsDataItem.fromJson(e as Map<String, dynamic>))
        .toList(),
    timeRange: TimeRange.fromJson(json['TimeRange'] as Map<String, dynamic>),
  );
}