All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.terminal21.ui.std.ServerJson.scala Maven / Gradle / Ivy

package org.terminal21.ui.std

import io.circe.Json

case class ServerJson(
    rootKeys: Seq[String],
    elements: Map[String, Json],
    keyTree: Map[String, Seq[String]]
):
  def include(j: ServerJson): ServerJson =
    ServerJson(
      rootKeys,
      elements ++ j.elements,
      keyTree ++ j.keyTree
    )

object ServerJson:
  val Empty = ServerJson(Nil, Map.empty, Map.empty)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy