EdgeStatistics.fromJson constructor

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

Implementation

factory EdgeStatistics.fromJson(Map<String, dynamic> json) {
  return EdgeStatistics(
    errorStatistics: json['ErrorStatistics'] != null
        ? ErrorStatistics.fromJson(
            json['ErrorStatistics'] as Map<String, dynamic>)
        : null,
    faultStatistics: json['FaultStatistics'] != null
        ? FaultStatistics.fromJson(
            json['FaultStatistics'] as Map<String, dynamic>)
        : null,
    okCount: json['OkCount'] as int?,
    totalCount: json['TotalCount'] as int?,
    totalResponseTime: json['TotalResponseTime'] as double?,
  );
}