Пример #1
0
        /// <inheritdoc />
        public void WriteTo(Utf8JsonWriter writer, IDiagnosticLogger?logger)
        {
            writer.WriteStartObject();

            writer.WriteDictionaryIfNotEmpty("data", InternalData !, logger);
            writer.WriteDictionaryIfNotEmpty("meta", InternalMeta !, logger);
            writer.WriteStringIfNotWhiteSpace("type", Type);
            writer.WriteStringIfNotWhiteSpace("description", Description);
            writer.WriteStringIfNotWhiteSpace("help_link", HelpLink);
            writer.WriteBooleanIfNotNull("handled", Handled);

            writer.WriteEndObject();
        }