Fixed JSON encode error
This commit is contained in:
parent
c8111526b5
commit
0f31294fd1
|
@ -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()
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue