public function getSerializable()

in src/router/PrefixMatching/PrefixMap.php [161:168]


  public function getSerializable(): mixed where T as string {
    return dict[
      'literals' => $this->literals,
      'prefixes' => Dict\map($this->prefixes, $it ==> $it->getSerializable()),
      'regexps' => Dict\map($this->regexps, $it ==> $it->getSerializable()),
    ]
      |> Dict\filter($$, $it ==> !C\is_empty($it));
  }