quicktype-core 23.0.88 → 23.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/language/Dart.js +4 -0
- package/package.json +1 -1
package/dist/language/Dart.js
CHANGED
|
@@ -540,6 +540,10 @@ class DartRenderer extends ConvenienceRenderer_1.ConvenienceRenderer {
|
|
|
540
540
|
this.emitLine("const factory ", className, "({");
|
|
541
541
|
this.indent(() => {
|
|
542
542
|
this.forEachClassProperty(c, "none", (name, jsonName, prop) => {
|
|
543
|
+
const description = this.descriptionForClassProperty(c, jsonName);
|
|
544
|
+
if (description !== undefined) {
|
|
545
|
+
this.emitDescription(description);
|
|
546
|
+
}
|
|
543
547
|
const required = this._options.requiredProperties ||
|
|
544
548
|
(this._options.nullSafety && (!prop.type.isNullable || !prop.isOptional));
|
|
545
549
|
if (this._options.useJsonAnnotation) {
|