Fixed JSON encode error

This commit is contained in:
Matthew Watt 2021-03-17 21:26:12 +00:00 committed by Szymon Uglis
parent c8111526b5
commit 0f31294fd1
No known key found for this signature in database
GPG key ID: 112376C5BEE91FE2

View file

@ -66,7 +66,7 @@ class CommandArg implements Builder {
"description": this.description,
"default": this.defaultArg,
"required": this.required,
if (this.choices != null) "choices": this.choices!.map((e) => e._build()),
if (this.options != null) "options": this.options!.map((e) => e._build())
if (this.choices != null) "choices": this.choices!.map((e) => e._build()).toList(),
if (this.options != null) "options": this.options!.map((e) => e._build()).toList()
};
}