AnalyticsIkonProxyServerStats.fromJson constructor
AnalyticsIkonProxyServerStats.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AnalyticsIkonProxyServerStats.fromJson(Map<String, dynamic> json) => AnalyticsIkonProxyServerStats(
time: (json['Time'] as String?) ?? '',
channelCount: (json['ChannelCount'] as num?)?.toInt() ?? 0,
sentMessagesPerSecond: (json['SentMessagesPerSecond'] as num?)?.toDouble() ?? 0.0,
sentMessagesBandwidthKb: (json['SentMessagesBandwidthKb'] as num?)?.toDouble() ?? 0.0,
sentMessagesCount: (json['SentMessagesCount'] as num?)?.toInt() ?? 0,
receivedMessagesPerSecond: (json['ReceivedMessagesPerSecond'] as num?)?.toDouble() ?? 0.0,
receivedMessagesBandwidthKb: (json['ReceivedMessagesBandwidthKb'] as num?)?.toDouble() ?? 0.0,
receivedMessagesCount: (json['ReceivedMessagesCount'] as num?)?.toInt() ?? 0,
cpuUsagePercentage: (json['CpuUsagePercentage'] as num?)?.toDouble() ?? 0.0,
processMemoryUsedMb: (json['ProcessMemoryUsedMb'] as num?)?.toDouble() ?? 0.0,
managedMemoryUsedMb: (json['ManagedMemoryUsedMb'] as num?)?.toDouble() ?? 0.0,
memoryInfo: (json['MemoryInfo'] as String?) ?? '',
);