toJson property

  1. @override
Object get toJson

Implementation

@override
Object get toJson => {
  'name': _label.toLowerCase(),
  'description': _description,
  'type': CommandType.group.type,
  'options': _subcommands.map((option) => option.toJson).toList(),
};