execute method

  1. @override
JinjaValue execute(
  1. Context ctx
)
override

Executes the statement within the given ctx and returns the result as a JinjaValue.

Implementation

@override
JinjaValue execute(Context ctx) {
  final map = <JinjaValue, JinjaValue>{};
  for (final entry in items) {
    map[entry.key.execute(ctx)] = entry.value.execute(ctx);
  }
  return JinjaMap(map);
}