WriteDictionaryRuntimeObjs static method

dynamic WriteDictionaryRuntimeObjs(
  1. SimpleJsonWriter writer,
  2. Map<String, RuntimeObject> dictionary
)

Implementation

static WriteDictionaryRuntimeObjs(
    SimpleJsonWriter writer, Map<String, RuntimeObject> dictionary) {
  writer.WriteObjectStart();
  for (var kv in dictionary.entries) {
    writer.WritePropertyStart(kv.key);
    WriteRuntimeObject(writer, kv.value);
    writer.WritePropertyEnd();
  }
  writer.WriteObjectEnd();
}