core.Map<core.String, core.dynamic> toJson() => { if (useTopicSchema != null) 'useTopicSchema': useTopicSchema!, if (writeMetadata != null) 'writeMetadata': writeMetadata!, };