ServerHealthConnectionInfo.fromJson constructor

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

Implementation

factory ServerHealthConnectionInfo.fromJson(
    Map<String, dynamic> jsonSerialization) {
  return ServerHealthConnectionInfo(
    id: jsonSerialization['id'] as int?,
    serverId: jsonSerialization['serverId'] as String,
    timestamp:
        _i1.DateTimeJsonExtension.fromJson(jsonSerialization['timestamp']),
    active: jsonSerialization['active'] as int,
    closing: jsonSerialization['closing'] as int,
    idle: jsonSerialization['idle'] as int,
    granularity: jsonSerialization['granularity'] as int,
  );
}