ServerHealthConnectionInfo.fromJson constructor
ServerHealthConnectionInfo.fromJson(
- Map<
String, dynamic> jsonSerialization, - SerializationManager serializationManager
Implementation
factory ServerHealthConnectionInfo.fromJson(
Map<String, dynamic> jsonSerialization,
_i1.SerializationManager serializationManager,
) {
return ServerHealthConnectionInfo(
id: serializationManager.deserialize<int?>(jsonSerialization['id']),
serverId: serializationManager
.deserialize<String>(jsonSerialization['serverId']),
timestamp: serializationManager
.deserialize<DateTime>(jsonSerialization['timestamp']),
active:
serializationManager.deserialize<int>(jsonSerialization['active']),
closing:
serializationManager.deserialize<int>(jsonSerialization['closing']),
idle: serializationManager.deserialize<int>(jsonSerialization['idle']),
granularity: serializationManager
.deserialize<int>(jsonSerialization['granularity']),
);
}