serialize property

  1. @override
Map<String, dynamic> get serialize
override

Implementation

@override
Map<String, dynamic> get serialize => {
  ...super.serialize,
  'type': CommandType.group.type,
  'options': subcommands.map((command) => command.serialize).toList()
};