ServerHealthConnectionInfo.fromJson constructor

ServerHealthConnectionInfo.fromJson(
  1. Map<String, dynamic> jsonSerialization,
  2. 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']),
  );
}