$toJsonList static method

$Value? $toJsonList(
  1. Runtime runtime,
  2. $Value? target,
  3. List<$Value?> args
)

Wrapper for the DiagnosticsNode.toJsonList method

Implementation

static $Value? $toJsonList(
  Runtime runtime,
  $Value? target,
  List<$Value?> args,
) {
  final value = DiagnosticsNode.toJsonList(
    (args[0]!.$reified as List).cast(),
    args[1]!.$value,
    args[2]!.$value,
  );
  return $List.view(value, (e) => $Map.wrap(e));
}