public void Write(ITreeWriter writer) { writer.WriteStartObject(); writer.WritePropertyName(nameof(List)); writer.WriteList(List); writer.WritePropertyName(nameof(StringDictionary)); writer.WriteDictionary(StringDictionary); writer.WritePropertyName(nameof(IntDictionary)); writer.WriteDictionary(IntDictionary); writer.WriteEndObject(); }
public void Write(ITreeWriter writer) { writer.WriteList(_chapters); }