ServerHealthResult.fromJson constructor
ServerHealthResult.fromJson(
- Map<String, dynamic> jsonSerialization
)
Implementation
factory ServerHealthResult.fromJson(Map<String, dynamic> jsonSerialization) {
return ServerHealthResult(
metrics: (jsonSerialization['metrics'] as List)
.map((e) =>
_i2.ServerHealthMetric.fromJson((e as Map<String, dynamic>)))
.toList(),
connectionInfos: (jsonSerialization['connectionInfos'] as List)
.map((e) => _i3.ServerHealthConnectionInfo.fromJson(
(e as Map<String, dynamic>)))
.toList(),
);
}