build method

dynamic build()

Implementation

build() {
  List res = [];
  if (this.tt != null) {
    res.add(this.tt!.value);
  }

  List argList = [];
  args.forEach((arg) {
    if (arg != null) {
      argList.add(arg.build());
    }
  });
  res.add(argList);

  if (optargs.isNotEmpty) {
    Map optArgsMap = {};
    optargs.forEach((k, v) {
      optArgsMap[k] = v.build();
    });
    res.add(optArgsMap);
  }
  return res;
}