ServerHealthResult.fromJson constructor

ServerHealthResult.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

Implementation

factory ServerHealthResult.fromJson(Map<String, dynamic> jsonSerialization) {
  return ServerHealthResult(
    metrics: _i4.Protocol().deserialize<List<_i2.ServerHealthMetric>>(
      jsonSerialization['metrics'],
    ),
    connectionInfos: _i4.Protocol()
        .deserialize<List<_i3.ServerHealthConnectionInfo>>(
          jsonSerialization['connectionInfos'],
        ),
  );
}